|
Posted by Gordon Burditt on 10/29/07 00:19
>I wrote a script but it takes too long to reach that number =). I
>guess I should not worry about it, but it would be more natural (imo)
>to reuse freed resource id slots.
I disagree. It is not a good idea, or more "natural" (whatever
that means) to re-use freed resource id slots *quickly*. You don't
want old references to resources (even ones saved in databases or
web clients, which is a bad idea but people will do it anyway)
referring to valid new resources accidentally.
Consider the situation with process IDs. Some systems re-use process
IDs somewhat faster than what fits in a 16-bit number, but it is
NOT a good idea to be sure that there is almost always a PID #2,
and if there isn't one already in use, it will be the next one
assigned.
Navigation:
[Reply to this message]
|