Open ScanMountGoat opened 2 years ago
The bits.extend
seems to copy one bit at a time. There should be some way to avoid multiple allocations per compressed buffer and potentially pool some of the bit sets together.
Allocating a single buffer and more intelligently setting the elements gives a roughly 4.5x speedup.
Anim -> AnimData: 677.5µs
AnimData -> Anim -> File: 6.845ms
The initial performance figures aren't looking too good for Anim. This could benefit from some benchmarking/profiling.