-
Notifications
You must be signed in to change notification settings - Fork 169
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
Support int priorities in FastPriorityQueue #32
Comments
I've actually switched to |
Have you profiled this? My understanding is that In any case, using |
I just now profiled it, and the results were mixed. Some times In any case, performance is not among my reasons for choosing unsigned types. I'm certainly not suggesting that you support |
Maybe you can add another class with two generic types (node and priority value) and comparison delegate (or second type must support eq, lt and gt operations). This can be a stupid idea but though |
@Bedivierre This already exists, and is what |
This would also help support determinism across hardware. Please consider using long to maintain precision. |
int
s are nearly always faster thanfloat
s. Given how popular this library has become, and how many people are using it for non-pathfinding applications, it would be nice to have another queue that supportsint
for people who don't needfloat
The text was updated successfully, but these errors were encountered: