1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Improve saving speed by using crc32 instead of sha1 for checksum

This commit is contained in:
tobspr
2020-08-10 23:31:02 +02:00
parent 9701a143ec
commit 2203d5fc6a
7 changed files with 59 additions and 41 deletions

View File

@@ -90,9 +90,6 @@ function compressObjectInternal(obj, keys = [], values = []) {
}
export function compressObject(obj) {
if (G_IS_DEV) {
return obj;
}
const keys = [];
const values = [];
const data = compressObjectInternal(obj, keys, values);