Since I'm hashing things, and Mudlet isn't using Lua 5.2, I ported over some pure Lua bitwise functions and SHA2 hashing into a package and figured I'd share it. Performance seems pretty reasonable actually. I've been hashing room descriptions and I don't get any noticeable performance hit.
I did minimal actually coding on these functions. All I did was port and test. If anyone sees a problem with them, let me know.
Just download the ZIP file and install it from the Mudlet package manager. Functions are in the BHExt namespace, divided into Bit, Bit32 and SHA2 sections for LuaBitOp bitwise operators, Lua 5.2 bitwise operators, and SHA2 hashing functions respectively.
Bitwise and Hashing Extension
Bitwise and Hashing Extension
- Attachments
-
- Bitwise and Hashing Extension.zip
- (4.53 KiB) Downloaded 470 times
Re: Bitwise and Hashing Extension
Lua's performance is amazing.
Thanks for the library, I just happened to neet bitwise extensions now!
Thanks for the library, I just happened to neet bitwise extensions now!