Skip to content

C++ templates to avoid heap fragmentation

Compare
Choose a tag to compare
@Simsso Simsso released this 20 Dec 22:08
· 8 commits to master since this release
cd2ae50

This version was contributed by lathoub in PR #17. The changes

  • avoid using free/malloc as it causes heap fragmentation and crashes long term when repeatedly calling constructor/destructor (this modif avoids that),
  • use uint8_t in stead of int (saving memory),
  • use bitSet and bitClear functions instead of performing the bit manipulation manually.