We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following snippet causes unexpectedly high memory usage:
func BenchmarkParseSubject(b *testing.B) { for n := 0; n < b.N; n++ { _, err := ldap.ParseDN("DF=#6666666666665006838820013100000746939546349182108463491821809FBFFFFFFFFF") if err == nil { b.Fatal("expected error, but got none") } } }
Run with:
go test -bench=. -benchmem .
Result:
goos: darwin goarch: arm64 pkg: . BenchmarkParseSubject-12 58 20398892 ns/op 1665740367 B/op 58 allocs/op
The text was updated successfully, but these errors were encountered:
ff74b2c
feat: Refactor ParseDN function to fix resource usage and invalid p…
ParseDN
b3dfcb5
…arsings (fixes go-ldap#487) (go-ldap#497)
No branches or pull requests
The following snippet causes unexpectedly high memory usage:
Run with:
go test -bench=. -benchmem .
Result:
The text was updated successfully, but these errors were encountered: