[Home] [Groups] - Message: [Prev in Group] [Next in Group]
19918: RE: [MUD-Dev] [TECH] String Classes, Memory Management, and Fragm entation
[Full Header] [Plain Text]
From: Daniel.Harman@barclayscapital.com
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 10 Jul 2001 11:49:54 +0100
Organization: Kanga.Nu
> -----Original Message-----
> From: Derek Licciardi [mailto:derek@elysianonline.com]
> I was wondering if someone from the MMORPG dev teams, or from the
> large scale MUD dev teams would answer a question for me. How do
> you guys handle Strings in game and the associated heap
> fragmentation of dynamically allocated string classes? Is anyone
> using third part Heap managers or replacement libraries? Are you
> using fixed string classes? Are you sharing strings for common
> objects/mobs?
> Been pondering multiple ways to solve the issue of Heap management
> and the string issue is a thorn in my side.
Well I don't work on on MUD, but its a standard C++ programming
pattern (I'm assuming you are using C++). Why would you buy a third
party heap manager when you could just write your own?
'Effective C++' (by Scott Meyers) covers implementing a custom
memory manager for a class. If you don't own this book and the
follow up 'More Effective C++' and you code in C++ you are missing
out anyway, they are very valuable books.
Dan
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev