-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
chore(data-structure): rework exceptions #325
Conversation
azjezz
commented
Dec 23, 2021
•
edited
Loading
edited
- throw underflow exception instead of invariant violation ( ref rework exceptions #198 )
- optimize data structures by using builtin functions instead of PSL ( while messier, it's faster, and is not exposed in the public API )
Pull Request Test Coverage Report for Build 1616906397
💛 - Coveralls |
fe4e701
to
187fb49
Compare
/** | ||
* Retrieve the list of nodes with the priority `$priority`. | ||
* shit the first node out. |
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.
Did you mean shift? :)
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.
LMAO
@veewee okay with this change? ( trying to make exceptions make sense a bit, invariant violation everywhere seemed a bit too generic, and doesn't allow for multiple catch blocks depending on the issue ) |
Sure, makes sense! |
Signed-off-by: azjezz <azjezz@protonmail.com>
Looks good! |
should be 2 to 3 times as fast ( no just because of that change, i did some other changes as well ). also, |
Nice! |
Oh, Collection is also 3 times faster ;) |