Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
caved in: Algorithms for for storing free space.
Well, after I quit being so bone-headed, (and envisioned a delete option
for my db) I quickly saw that I needed to manage free space much
better for my db.
I'm sure this has been done many times before, but any quick hints would
be welcome. I want to keep with a single db-file approach, wich rules out
the (really cool) idea involving powers of 2 that was posted recently...
Perhaps an array of linked lists(stacks would be fine), the array being 32
long, mimicing the powers of two idea?
Each stack will hold seek positions into the DB file....
So here's a question, what's a good way to determine the
power of two that is optimal for the storage space needed?
A binary search wouldn't be too bad, just wondering if there's
a better (constant) method??
Enjoy,
Ben
Ben Greear (greear#cyberhighway,net) http://www.primenet.com/~greear
Author of ScryMUD: mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html
- Thread context:
- RE: [MUD-Dev] Character development [was Re: ], (continued)
- RE: [MUD-Dev] Character development [was Re: ],
Koster, Raph rkoster#origin,ea.com, Thu 09 Apr 1998, 17:00 GMT
- RE: [MUD-Dev] Character development [was Re: ],
Koster, Raph rkoster#origin,ea.com, Thu 16 Apr 1998, 22:50 GMT
- Re: [MUD-Dev] Character development [was Re: ],
Alex Bertoglio alexb#internetcds,com, Fri 17 Apr 1998, 04:24 GMT
- caved in: Algorithms for for storing free space.,
Ben Greear greear#cyberhighway,net, Sun 05 Apr 1998, 02:31 GMT
- Re: [MUD-Dev] GRUMPS,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Sat 04 Apr 1998, 23:30 GMT
[ Other Periods
| Other mailing lists
| Search
]