-
Notifications
You must be signed in to change notification settings - Fork 18k
lambda arent inlined therefore sort is slower than expected #21495
New issue
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
Labels
Comments
For info same result with go1.9rc2
|
Seems a duplicate of #15561 |
Agree Rasky... my bad. |
Yes please, open a different bug with the minimum amount of information required, I'm failing to understand what you mean by "sort performance issue" which is not related to inlining of closures. Thanks |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.8.3 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
bla.go
bla_test.go
What did you expect to see?
Because
bla.go:36: can inline LambdaShouldBeInlined.func1
I was expecting to seebla.go:45: inlining call to LambdaShouldBeInlined.func1
Therefore I was expecting
BenchmarkWithSort
andBenchmarkWithLambda
to be as fast asBenchmarkWithfunc
At least we could do a quick fix in sort package by using private sort function and not lambdas
The text was updated successfully, but these errors were encountered: