Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site down.FUN Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!down!honey From: honey@down.FUN (code 101) Newsgroups: net.sources.bugs Subject: Re: Bugs (and fixes) in pathalias Message-ID: <433@down.FUN> Date: Mon, 28-Jan-85 14:07:05 EST Article-I.D.: down.433 Posted: Mon Jan 28 14:07:05 1985 Date-Received: Tue, 29-Jan-85 07:12:19 EST References: <328@desint.UUCP> Organization: Princeton University, EECS Lines: 16 Re (1), USG and index/rindex/strchr/strrchr: if you define ATTSV in config.h, def.h will define index and rindex for you. Re (2), MYMALLOC commentary: Geoff oversimplifies. It's true that myfree() is a no-op, but observe that mymalloc() uses a buffered sbrk() scheme. I did a lot of profiling, against every version of malloc I could find and discovered that mymalloc() wins on time *and* space. It's easy to see why it wins on time. For space, I found that almost all of the free()-ing comes after almost all of the malloc()-ing, thus very little space is re-used, so you never win back the space overhead. Re (3), core dump if you don't use mymalloc(): thank you, I'll look at this right away. Peter