Skip to content

Conversation

jere8184
Copy link
Contributor

@jere8184 jere8184 commented Nov 7, 2024

fixes #1675

@jere8184

This comment was marked as duplicate.

@jere8184
Copy link
Contributor Author

jere8184 commented Nov 8, 2024

@heinezen @TheJJ Hopefully this is along the right lines, One issue I've noticed is that unlink_node will leave the user of the function with a node that they will have to then manually delete unless the node is pushed back into the heap at least with my current implementation.

@jere8184
Copy link
Contributor Author

jere8184 commented Nov 10, 2024

unlink_node is now private. remove_node method added. 32% performance increase observed.

@heinezen heinezen linked an issue Nov 18, 2024 that may be closed by this pull request
2 tasks
Copy link
Member

@heinezen heinezen left a comment

Choose a reason for hiding this comment

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

I found a few problems.

Comment on lines 323 to 321
#if OPENAGE_PAIRINGHEAP_DEBUG
#endif
Copy link
Member

Choose a reason for hiding this comment

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

This code block does nohing now

@heinezen heinezen added improvement Enhancement of an existing component lang: c++ Done in C++ code area: util Utilitis and data structures labels Nov 19, 2024
@TheJJ TheJJ changed the title Paring heap Paring heap without shared_ptr Nov 19, 2024
@jere8184 jere8184 requested a review from heinezen November 22, 2024 11:38
Copy link
Member

@heinezen heinezen left a comment

Choose a reason for hiding this comment

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

I have one addtional suggestion and then we can merge.

The rest of the code seems to work out fine :)

@jere8184 jere8184 closed this by deleting the head repository Nov 24, 2024
@jere8184
Copy link
Contributor Author

I think I may have made a small mistake :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: util Utilitis and data structures improvement Enhancement of an existing component lang: c++ Done in C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement pairing heap without shared_ptr
2 participants