f-010115

ldmud-3.2.9/src/done/f-010115 · 536 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: Improvements to smalloc
Date: 2001-01-15
From: Lars
Type: Feature
State: Done - implemented in 3.2.9-dev.254

When looking for n-Byte small Blocks,consider splitting a free >n-Byte Block.

During a GC, coalesce adjacent free small blocks. This would require rebuilding
all freelists, which could be done simply by scanning for GC_FREE small blocks.

When coalescing small blocks, maybe allow 'odd' sizes. These could be held in a separate free list, and used in a 'splitting' maneuver if the appropriate free list is exhausted.

Site Stats

Snippets: 1791
Codebases: 571