lemire / FastIntegerCompression.js

Fast integer compression library in JavaScript
Apache License 2.0
59 stars 11 forks source link

How to work with 2 dimensional integer array? #7

Closed yususs closed 3 years ago

yususs commented 3 years ago

Hello.

Is there any way to compress array such this?

var arr = [
    [8,100000,65978,10,10,0,-1,-1,-2000],
    [9,100000,65979,10,10,0,-1,-1,-2000],
    [10,100000,65999,10,10,0,-1,-1,-3000]
]
lemire commented 3 years ago

It only applies to arrays of integers. Of course, you can compress each array within your array and create an array of compressed arrays.