Use BitOp or Bit32 libraries where available#2
Use BitOp or Bit32 libraries where available#2kikito merged 2 commits intokikito:masterfrom pablomayobre:patch-1
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