[Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Alan Schmitt <alan.schmitt@xxxxxxxx> writes:
> * Vasco Alexandre Da Silva Costa (vasc@xxxxxxxxxxxxxx) wrote:
> > Yes. Unfortunately it introduces new problems. Most GC's are dumb so
> > you must set all pointers that point to a piece of mem to NULL so the
> > GC can see that the memory isn't used anymore. GC's are also often slow
> > when doing the garbage collecting step. I should know about that as a
> > former LISP programmer :-)
> > Sure its easy to use. But it isn't perfect.
>
> Modern GC (incremental, with several generations) can be pretty fast
> (such as the one in ocaml), and they can be pretty smart (ie collect
> everything automatically) when the language was designed with automatic
> memory management in mind.
I'm not generally opposed to garbage collecting, but I don't see what
it would gain us here. There couldn't be any more references to freed
memory, OK, but instead we'd had references to already dead units,
which isn't much better. One would have to check if the unit isn't
actually dead before doing anything all the time.
Falk
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, (continued)
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Trent Piepho, 2001/08/21
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/21
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Trent Piepho, 2001/08/21
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Kevin Brown, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Erik Sigra, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/22
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Gaute B Strokkenes, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Raimar Falke, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Vasco Alexandre Da Silva Costa, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Alan Schmitt, 2001/08/25
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand,
Falk Hueffner <=
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Vasco Alexandre Da Silva Costa, 2001/08/24
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Trent Piepho, 2001/08/20
- [Freeciv-Dev] Re: [PATCH] Small improvement at genlist and maphand, Gaute B Strokkenes, 2001/08/21
|
|