mirror of
https://github.com/libretro/opera-libretro.git
synced 2026-11-07 12:37:52 -10:00
Brings in RetroArch's "rchd: allocate nothing per hunk once an image is open" and "rchd: say how long lent bytes have to live". CHD reads no longer allocate once the image is open: the staging buffer is reused, the CD FLAC decoder is kept and rewound, and the hunk cache, CD sector scratch and FLAC rewind point are allocated at open. A malloc counter over every sector of CD LZMA, CD FLAC and mixed images went from 299 allocations during reads to 0.