]> git.pond.sub.org Git - empserver/commit
Replace the revolting build pointer data structure by a proper data
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 13 Jan 2007 09:07:59 +0000 (09:07 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 13 Jan 2007 09:07:59 +0000 (09:07 +0000)
commit5507e8a1dc8a32bb5a505ce00879abf7c049fdd0
tree683c2bd7876c7905e4a51e15974c4a4e693499ec
parentac9cdf5bb930d89d8d2478841508c0a038697efc
Replace the revolting build pointer data structure by a proper data
type.  Make it abstract because that's possible.  Change data layout
so that the slots belonging to a sector are together in memory, it's
nicer to the cache.
(bp): The new type.  Users changed.
(get_wp): Update accordingly.
(alloc_bp): New.
(update_main, calc_all): Use it.  Before, calc_all() allocated 1/7
more than necessary.
13 files changed:
include/budg.h
include/prototypes.h
include/types.h
src/lib/commands/budg.c
src/lib/update/bp.c
src/lib/update/human.c
src/lib/update/land.c
src/lib/update/main.c
src/lib/update/material.c
src/lib/update/plane.c
src/lib/update/prepare.c
src/lib/update/sect.c
src/lib/update/ship.c