// thus on Wed, 13 Aug 1997 14:35:42 -0400, George virtually wrote:
George> On Wed, 13 Aug 1997, Tom Dailey wrote:
>> couldn't get past the loading of the text files (help files etc..)
>> because of a memory leak in utils.c. I can't imagine what's going to
>> happen when
George> Um, I'm betting your "memory leak" is str_dup().
George> Both functions do a CREATE() and then return without freeing, hence
George> the apparent memory leak.
And if you run gprof, you'll see that strdup is what circlemud spends most
of it's time running. If you check out purify (although last time I
checked they didn't have a linux version), you can download it for a 15 day
evaluation. http://www.pure.com (actually it's pureatria, but I'm not 100%
sure on the spelling).
Tightening up str_dup with a strdup similiar to that found in glibc, you
can increase performance on str_dup() calls by a little over 10%.
d.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST