mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
This would realloc a buffer for every event, making it absurdly slow for large MIDI files (say, 10k events). Use the somewhat standard heuristic of doubling the requested allocation every time we need to increase the size. This results in a speedup of 40-100x when saving SMF to disk |
||
|---|---|---|
| .. | ||
| COPYING | ||
| README | ||
| smf.c | ||
| smf.h | ||
| smf_decode.c | ||
| smf_load.c | ||
| smf_private.h | ||
| smf_save.c | ||
| smf_tempo.c | ||
| smfsh.c | ||
This is a stripped down version of libsmf 1.2 by Edward Tomasz Napiera for internal use by Evoral. See COPYING for licensing information. The complete version can be found at <http://libsmf.sf.net>.