-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add a DataStructures module with PriorityQueue and heap functions. #2920
Conversation
I believe the module name Cc: @lindahua |
An alternative name could be |
It would be great if docs can be added before merging this. |
Now that you mention it, I think I prefer I've renamed and documented everything now. |
exports.jl still seems to be exporting DataStructures. |
Oops. FIxed now. |
end | ||
|
||
|
||
end # module DataStructures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silly - but I guess this should be Collections too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly. Fixed now.
Thanks. I am going to leave this open for any other API discussions for a little bit. |
Heaps are added in #2920 Graphs.jl has sophisticated graph functionality. Remove examples/RMT now that we have the RandomMatrices.jl package
Why not just have this in |
There's a larger question of how Base should be organized, but with the addition of the Test and Sort modules we seem to be headed in the direction of not putting everything at top-level, so I'm following that trend. Also, I expect there to be more in the Collections module eventually. |
At line 126 of collections.jl, I think a careful benchmark is needed to ensure that the implementation is optimized. |
BTW, API-wise this looks good. I think it should be merged, but would like @StefanKarpinski and @JeffBezanson to look at this as well. @lindahua Agree that we should benchmark this. That can be done even after this pull request is merged though. It would be great if Base.Test can have some support for performance benchmarking, coming to think of it. More generally, we need a way to track performance regressions. |
Please rebase, then I will merge it. |
Rebased! |
Priority queue tests do not pass: https://travis-ci.org/JuliaLang/julia/jobs/6747796#L602 Appears to be related to the changes in #2347. |
Thanks. It should be working now. |
Add a DataStructures module with PriorityQueue and heap functions.
This is good to go, and everyone seems cool with it. See #2438.