Open uklotzde opened 3 years ago
The size is known in advance and the required memory could be allocated statically.
It's only known if the LFSR is using a maximum length characteristic polynomial. But I guess this is the case for all LFSR-based time codes and in the worst case we allocate too much. So I'll look into it.
This is not urgent. The issue was only intended as a reminder for later when we have a first working version.
It should be possible to use this library in a no-std (bare metal) environment.
The only heap allocation that is needed is for the lookup table. The size is known in advance and the required memory could be allocated statically.
By switching to hashbrown::HashMap this should be possible.