promotional bannermobile promotional banner

Lib: Serialize

Abandoned
Serialized

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

The Lib: Serialize Team

profile avatar
  • 3
    Projects
  • 23.2K
    Downloads

More from _ForgeUser2477521

  • Mail Outbox project image

    Mail Outbox

    • 20.3K
    • Addons

    Helps to track outgoing mails

    • 20.3K
    • October 15, 2014
    • Addons
    • +3
  • TaR project image

    TaR

    • 1.2K
    • Addons

    TaR

    • 1.2K
    • October 12, 2011
    • Addons
    • +4
  • Mail Outbox project image

    Mail Outbox

    • 20.3K
    • Addons

    Helps to track outgoing mails

    • 20.3K
    • October 15, 2014
    • Addons
    • +3
  • TaR project image

    TaR

    • 1.2K
    • Addons

    TaR

    • 1.2K
    • October 12, 2011
    • Addons
    • +4