Comment Comment by acconsta For large allocations, realloc can remap virtual memory instead of doing a naive copy:http://blog.httrack.com/blog/2014/04/05/a-story-of-realloc-a... parent acconsta 10 years ago
http://blog.httrack.com/blog/2014/04/05/a-story-of-realloc-a...