diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-20 15:35:37 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-20 15:35:37 +0100 |
| commit | 0667089d47dd0cee5bda83965ff6bbdc2e4fd288 (patch) | |
| tree | 1cfd727134f641a55238e5bead743ad23c489a74 /ring-buffer.c | |
| parent | 697bc0ebc8178488cdb837b584b47d965b421b48 (diff) | |
| download | vis-0667089d47dd0cee5bda83965ff6bbdc2e4fd288.tar.gz vis-0667089d47dd0cee5bda83965ff6bbdc2e4fd288.tar.xz | |
buffer: tweak memory allocation strategy
Do not simply double the requested size. Instead take the maximum of
- the requested size
- double the current buffer size
This will use less memory for large register operations (e.g. deleting
the whole file).
Diffstat (limited to 'ring-buffer.c')
0 files changed, 0 insertions, 0 deletions
