Skip to content

Decompression needs to be threaded #14

Description

@oidro

This decompression:

let received_chunk_data: ChunkData = decode_compressed(&*data);

and this lock:
let mut chunk_data_write = loaded_chunk.data.write().unwrap();

currently run in the main thread, which is killing performance (~6ms for the decompression, and ~1ms for the lock).
These steps need to be moved into the chunk-updating thread(s), which hopefully shouldn't be too difficult.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions