Large number array compression
Posted
by gatapia
on Stack Overflow
See other posts from Stack Overflow
or by gatapia
Published on 2010-04-07T23:03:17Z
Indexed on
2010/04/08
0:33 UTC
Read the original article
Hit count: 452
JavaScript
|compression
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
© Stack Overflow or respective owner