openswe1r
openswe1r copied to clipboard
Use proper memory allocation algorithm
Right now, all memory is just allocated and never free'd. This leads to > 500 MB memory consumption even before the first frame.
A memory allocation from some libc which works with 32 bit should be stolen.
Maybe using https://github.com/rhempel/umm_malloc would be an idea. It is licensed under the MIT License and would offer:
void umm_init( void );
void *umm_malloc( size_t size );
void *umm_calloc( size_t num, size_t size );
void *umm_realloc( void *ptr, size_t size );
void umm_free( void *ptr );
This was closed unintentionally by a PR. Re-opened.