Closed hellertime closed 6 months ago
It appears there is nothing that prevents get_maximum_output_size from being declared const, and if it were then it should be possible to use it in array initializers:
get_maximum_output_size
let buf = [u8; lz4_flex::block::compress::get_maximum_output_size(&input)];
Seems like a good idea if you know the size of your input, released with 0.11.3.
0.11.3
Stack allocation may be slower tough in some cases.
It appears there is nothing that prevents
get_maximum_output_size
from being declared const, and if it were then it should be possible to use it in array initializers:let buf = [u8; lz4_flex::block::compress::get_maximum_output_size(&input)];