Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Josiah M. <jm...@ma...> - 2002-12-18 00:41:45
|
Maybe I am totally off base here, but it seems to me that if you really want to prevent fragmentation, for example in a server that has a really long up time, the best thing to do would be to use smart pointers of some sort. By not having your pointers directly point to a memory location, this allows you to change what the pointer points to. It seems to me that having this additional abstraction would allow you to periodically defragment memory, and the programmer wouldn't have to worry about the details at all. It just works. This is essentially what happens with your file system on the hard drive. There is no easy way to know where exactly a file is on disk, and it could change any time with no one being the wiser. Josiah Manson |