You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull requests, bug reports and other feedback welcome! ❤️
Bitser is released under the ISC license (functionally equivalent to the BSD
2-Clause and MIT licenses).
Please note that bitser requires LuaJIT for its ffi library and JIT compilation. Without JIT, it may or may not run, but it will be much slower than usual. This primarily affects Android and iOS, because JIT is disabled on those platforms.
⚠️ bitser is not endian-safe. If you intend to share serialized data across computers, please make sure they share endianness making sure ffi.abi 'le' has the same value on both the sending and receiving machine, or use another serialization library.
Why would I use this?
Because it's fast. Because it produces tiny output. Because the name means "snappier"
or "unfriendlier" in Dutch. Because it's safe to use with untrusted data.
You can add more cases in the folder cases/ (check out _new.lua), and add other
serializers to the benchmark in main.lua. If you do either of those things, please
send me a pull request!
You can register classes?
Yes. At the moment, bitser supports classes created using MiddleClass, SECL, hump.class, Slither, Moonscript and Classic (and
probably some other class libraries by accident).
About
Serializes and deserializes Lua values with LuaJIT