-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use BitOp or Bit32 libraries where available #2
Conversation
Hi Positive07, Have you tested this in systems without the "bit" library? As far as I know, this line should fail:
When you try to The appropriate way of doing this should involve
I would do the changes myself, but I am travelling and can't do that at the moment. Can you add the change and make sure it works when the libraries are not present? |
Added pcalls instead of raw requires as suggested by Kikito
Thanks Kikito, you where right! it errored right away, fixed it as you suggested, I'll test this fix in a couple of hours and come back to confirm that it works |
It works perfectly fine now |
Use BitOp or Bit32 libraries where available
Thanks a lot, merged! |
I have setup md5.lua in Travis so that tests can be run automatically in the three main envs (Lua 5.1, 5.2 & LuaJIT). This should make changes easier in the future. I have also included you in the credits readme, released version 1.0.0 of the library, and published it in Luarocks. Thanks again! |
Wow amazing! Thank you! |
md5.lua Less than 824 bytes, MD5 is correct |
Hi @lxss, please create a new issue instead of commenting on a closed one. |
I'm sorry, I have just registered, don't know how to use require "md5" local str = ""; |
Tested and got between 300 and 500 faster performance which I consider a HUGE amount.
I dont know why the commit looks so horrible but I just made a few minor changes