-
Notifications
You must be signed in to change notification settings - Fork 18
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
Topk feature request #67
Comments
Yes, we can add a new function, it should be straightforward. Probably we can call the new function |
It would be better to add an extra argument to |
It is really up to you, I don't mind an extra argument or a new function as long as it is efficient and as fast as topk. Thank you. |
I have added the new functionality to the master branch.
Return upto If
|
Thank you. I will have a look on Monday. |
What I feared happened. x = rand(8*(10^8));
@time InMemoryDatasets.topk(x, 6)
2.618424 seconds (1 allocation: 112 bytes) Before I had it at 1.237111 seconds. |
I am fixing this. I am also going to go with |
check master. |
Hi, thank you. I think you have a performance regression issue on topk. On master topk seems slower. 1.754926 seconds (2 allocations: 224 bytes) . It was just 1 allocation before. Did you change topk? On master topk and topkperm seem to have the same performance. |
This is expected, since |
Would you please check the |
Hi, thanks, (using the same benchmark as above) yes topk is a bit faster at 1.65sec and topkperm much faster at 1.35 sec. Thank you |
Both should be about the same timing - I guess the difference here is due to something else. One more thing... The latest commit adds multithreading to |
Nice work! Yes I see that both functions have similar performance now but I only see a difference for topk when using multithreading. It doea not seem to work for topkperm. Do you have a private email I can contact you on? Thank you. |
It should be a bug, I am working on that. |
Currently we pass |
Hi,
Thanks for the package. Would it be possible to have the ability to return the index of the values instead of the values when using topk?
Thanks
The text was updated successfully, but these errors were encountered: