aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-08-04 22:31:31 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-08-05 00:05:44 +0200
commit9f73d18094ebedf94cb7b0507c195ada13c1d36a (patch)
tree110a437e50b46ccbfe3c3a1e84ff7ba9f5c14262 /src/doc.c
parent1249c18186ff003b66f77d96bc590c50280643f8 (diff)
dlmalloc: avoid unnecessary atomics in realloc()
* Atomics are much cheaper than mutexes for such rarely contented fields, but they are still much slower than plain arithmetics. * For realloc(), we'd expect relatively small changes between calls which means that the chunk's usable size probably won't change. Therefore it makes sense to check whether we'd get a zero addition to teco_memory_usage. * We will now have at most one atomic add in realloc() instead of always 2 atomic operations.
Diffstat (limited to 'src/doc.c')
0 files changed, 0 insertions, 0 deletions