The Cold server - This implements a dynamic, object-oriented language on top of an object database, well suited for virtual environments and online servers (like games).
The GDBM lookup code (lookup.c) does string operations to store the size and offset as formatted string data, while the BDB (lookup_bdb.c) stores them as a binary struct.
Storing the binary struct is more efficient as it avoids calls to atol or atoll which ends up calling into even heavier libc stuff.
The GDBM lookup code (
lookup.c
) does string operations to store the size and offset as formatted string data, while the BDB (lookup_bdb.c
) stores them as a binary struct.Storing the binary struct is more efficient as it avoids calls to
atol
oratoll
which ends up calling into even heavier libc stuff.(This won't help TEC since it uses BDB.)