veloren/common
Joshua Yanovski 7d6aebb316 Fix hacky solution with proper defragmentation.
After generating a chonk, we now find the highest frequency block (in
terms of the number of groups that uniformly consist of that block) and
replace the chunk's default with that one.  We also resort the data in
the process to be in the same order as the original array index.  This
improves our memory savings from 3x to almost 7x, and brings us within a
factor of 3 or so of what I hope a true average will be.

The defragmentation is not totally optimal and can probably be improved
from a performance perspective, but given how much of a hard bottleneck
RAM is this seems worthwhile.  Also, this doesn't suffer from the issues
the previous solution did.
2020-09-28 16:56:26 +02:00
..
benches Remove spurious uses of Vox. 2020-09-26 16:30:40 +02:00
src Fix hacky solution with proper defragmentation. 2020-09-28 16:56:26 +02:00
build.rs switching veloren naming scheme, to either one of the following: 2020-09-22 11:47:18 +02:00
Cargo.toml Improved representation of Block for better performance, more features, and better backwards-compatibility 2020-09-20 11:46:12 +01:00