-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement pairing heap without shared_ptr
#1675
Comments
Can I work on this issue |
@vijayabhaskar78 Yes, you can. Do you have knowledge of C++? It's not the easiest beginner task for someone new to C++. |
@heinezen I would like to pick this up if its still available |
@jere8184 it is available and it would be a nice addition :) |
Great, should I keep the shared pointer implementation or replace it? |
I think we can just replace it. |
you can replace it, so that one can add shared pointers as the contained element type - then we have both available! |
Resolved in #1713 |
Required Skills: C++
Difficulty: Hard
openage provides a pairing heap implementation that is mostly used in the A* algorithm of our pathfinder. Currently, nodes on the heap are connected using
shared_ptr
. However, we have noticed that the creation ofshared_ptr
objects when using the heap is very slow. A variant with raw pointers and withoutshared_ptr
may offer better performance benefits.A previous implementation already used raw pointers. You can see it in commit 4ab602a
Tasks:
shared_ptr
orenable_shared_from_this
. You can use the implemenation in 4ab602a as a reference but be aware that other parts of the code may have changed since then.Further Reading
The text was updated successfully, but these errors were encountered: