Javascript large number array compression
- by gatapia
Hi All,
I've got a javascript application that sends a large amount of numerical data down the wire. This data is then stored in a database. I am having size issues (too much bandwidth, database getting too big). I am now ready to sacrifice some performance for compression.
I was thinking of implementing a base 62 number.toString(62) and parseInt(compressed, 62). This would certainly reduce the size of the data but before I go ahead and do this I thought I would put it to the folks here as I know there must be some outside the box solution I have not considered.
The basic specs are:
- Compress large number arrays into strings for JSONP transfer (So I think UTF is out)
- Be relatively fast, look I'm not expecting same performance as I have now but I also don't want gzip compression either.
Any ideas would be greatly appreciated.
Thanks
Guido Tapia