[MUD-Dev] [TECH] String Classes, Memory Management, and Fragm entation

Daniel.Harman at barclayscapital.com Daniel.Harman at barclayscapital.com
Tue Jul 10 11:49:54 CEST 2001


> -----Original Message-----
> From: Derek Licciardi [mailto:derek at 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 at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list