Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Unique id's
[Shawn H:]
:Any magical algorithms? :)
Chris L is almost certainly different in details, so I'll just outline
what my stuff does. The unique id on anything is just its database id.
This is an index into a descriptor table that gives the offset and length
of the actual data in the database. Slots in the descriptor table are
reused when they are freed (there is space in them to make a simple
linked-list of the freed ones). When more are needed, the table just grows
on the end, so until freeing happens, dbids just start at 1 and go up.
Some systems specifically avoid re-using ids, in order to better catch
dangling pointers.
--
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
- Thread context:
- Re: Java as a mudserver language, (continued)
- six degrees of submission ... er, compilation.,
Cynbe ru Taren cynbe#laurel,actlab.utexas.edu, Thu 10 Apr 1997, 13:26 GMT
- Dupes are my fault (again),
coder coder#ibm,net, Thu 10 Apr 1997, 12:08 GMT
- Unique id's,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Wed 09 Apr 1997, 21:46 GMT
- <Possible follow-up(s)>
- Re: Unique id's,
clawrenc clawrenc#cup,hp.com, Sat 12 Apr 1997, 06:03 GMT
- Re: Unique id's,
Jon A. Lambert jlsysinc#ix,netcom.com, Sat 12 Apr 1997, 11:49 GMT
- Re: Unique id's,
coder coder#ibm,net, Sat 12 Apr 1997, 13:55 GMT
- Re: Unique id's,
Jon A. Lambert jlsysinc#ix,netcom.com, Sat 12 Apr 1997, 23:53 GMT
[ Other Periods
| Other mailing lists
| Search
]