High memory usage in vibe.d application

Anton Fediushin fediushin.anton at yandex.com
Fri Jun 29 09:44:27 UTC 2018


Almost forgot, there are two timers which call this function for 
two different streams.

Value of `metaint` is 16000, which means that only 16KB of memory 
are allocated for the `buffer`, then it reads another byte which 
contains length of the metadata / 16 and then it reads the 
metadata which is 100-200 bytes long.

This gives us... 16KiB per one nowPlaying() call. Why doesn't it 
free the memory?


More information about the Digitalmars-d-learn mailing list