Lib: Serialize

This project is abandoned and its default file will likely not work with the most recent version of World of Warcraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

I needed to store and export realy big (+-500 mb) chunks of data from wow, therefore I created this library... It serializes wow lua structures, uses references so it can handle almost any lua table (even with cyclic table references for example). Because of using references, it actually stores data really effectively (it is a type of simple compression) so it can help to store persistent addon data in much smaller 'saved variables' files. It was also optimalized for speed (but sure more can be done there). Since I needed to use those data in web environment I ported deserialization to javascript...

but still it is beta and I am testing different approaches (for example base100 coding for float number storage)...

How to use:

local Serializer=LibStub("LibSerialize");  -- get it

String = Serializer:Serialize(Data); -- serialize those Data into a String

Data = Serializer:DeSerialize(String); -- deserialize that String back into Data

todo: many many things...these pop up in my mind

a) preinitialization with well known strings (for addons to reduce actual amount of data transferred)

b) number-convert cache for speed up

c) some LRU type cache especialy for floating number serialization


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    35549
  • Created
    Jan 10, 2012
  • Last Released File
    Never
  • Total Downloads
    1,025
  • License

Categories

Members

Recent Files