Skip to content
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

Worry about performance hit on double precision float numbers arguments #14

Open
crazyyi opened this issue May 21, 2017 · 0 comments
Open

Comments

@crazyyi
Copy link

crazyyi commented May 21, 2017

I am researching bit packing technologies in javascript and I come across this module. I am making a game too so I am glad this is born for games. The problem is javascript only supports integer bitwise operation. But unlike other languages, javascript numbers are double precision float numbers. So the numbers in the arguments need to be converted to integer before bit shifting and other bit operations. Does that have any negative performance impact?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant