Skip to content
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

Simplify and speed up Object FindKey #9

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

klauspost
Copy link
Collaborator

Use the length to reject candidates a bit quicker.

λ benchcmp before.txt after.txt
benchmark                                         old ns/op     new ns/op     delta
BenchmarkNdjsonWarmCountStarWithWhere/iter-12     272527765     251116358     -7.86%

benchmark                                         old MB/s           new MB/s           speedup
BenchmarkNdjsonWarmCountStarWithWhere/iter-12     1341.11            1455.46            1.09x

countRawTapeWhere is broken. I don't know if there is any point in fixing it. Old benchmark was broken.

Use the length to reject candidates a bit quicker.

```
λ benchcmp before.txt after.txt
benchmark                                         old ns/op     new ns/op     delta
BenchmarkNdjsonWarmCountStarWithWhere/iter-12     272527765     251116358     -7.86%

benchmark                                         old MB/s           new MB/s           speedup
BenchmarkNdjsonWarmCountStarWithWhere/iter-12     1341.11            1455.46            1.09x
```

`countRawTapeWhere` is broken. I don't know if there is any point in fixing it. Old benchmark was broken.
Copy link
Contributor

@fwessels fwessels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fwessels
Copy link
Contributor

@klauspost will take a look at the benchmark error

@fwessels fwessels merged commit 4f98419 into minio:master Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants