openswe1r icon indicating copy to clipboard operation
openswe1r copied to clipboard

Use proper memory allocation algorithm

Open JayFoxRox opened this issue 7 years ago • 2 comments

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.

JayFoxRox avatar Nov 27 '17 18:11 JayFoxRox

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 );

0DaveX avatar Nov 28 '17 05:11 0DaveX

This was closed unintentionally by a PR. Re-opened.

JayFoxRox avatar Dec 21 '17 20:12 JayFoxRox