f-990318-0

ldmud-3.2.9/src/done/f-990318-0 · 652 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: Better management of objects
From: Padreic and Lars
Date: 990318
Type: Feature
State: Done - implemented in 3.2.6-dev.62

look_for_objs_to_swap() suffers from the unstructured way objects
are kept: in a linear list. For large muds, scanning the list becomes
a time consuming event.

Objects should be kept in two sorted tables of lists: the first
table is sorted by .next_reset, the second by .time_since_ref. Every
table entry collects all objects within the given granularity
(RESET_GRANULARITY, min(time_to_swap, time_to_swap_vars)).

Reset table: after an object was reset, it can be removed from
the table until its RESET_STATE is cleared?

Site Stats

Snippets: 1791
Codebases: 571