LTCS - Lua Table Encosion

LTCS v0.1


What is this?

This is basically just an JSON Alternative which can be up to %30 smaller. It also uses base91 to represent numbers instead of literal strings.

What is the best way to use this?

LTCS is really bad at ordered tables, sometimes you may use oreded tables when you dont expect it. LTCS requires at least 1 character to represent indexes and values.

What can LTCS do that json cant

  1. Mixed Tables

  2. Non string indexes, allows any type

  3. Can save metatables.


How to use

LTCS has to methods,. and is very simple to use

local Table = {A=1,B=2,C=3,D=9}

local String = LTCS.Encode(Table)

local Compare = LTCS.Decode(String)

print(Table,Compare) --> Should be the same !

LTCS.rbxm (5.3 KB)

MD5 Signature

380fe426e219ad8fa0ea53f1cb74ed0e

5 Likes

TABLE TO SAVE - the Roblox text compressor - LTCS compress - very small string

I tested the Module, and have come back with the results!
It Can encode any data
It Cannot decode metatables or non string|number data.

Bug? Would love to use if solved

1 Like

Alright, ill look into this. And i will reply once fixed.