3 ms·
Assuming binary blob is relatively small: Just template generate and store the data as a bit array on the language of your choice. For example, if you are usi
by DethNinja 4y ago
Assuming binary blob is relatively small:
Just template generate and store the data as a bit array on the language of your choice.
For example, if you are using C/C++ you can zip everything then use a small python script to generate a C/C++ header where this data is available as a uint8_t array.
Keep in mind that all this data will be loaded to memory, so I don’t recommend this approach for anything north of 10mb.
- kazinator 4y agoOn a modern VM system, the static initialized data will be mapped to memory, not loaded. So you have to worry about its virtual footprint, not physical memory use.