swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance slowdown using alloc?


From: Marcus G. Daniels
Subject: Re: Performance slowdown using alloc?
Date: 14 Apr 2000 19:35:22 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "F" == famasce  <address@hidden> writes:

F> But doing this I've noticed a slowdown in execution. Considering
F> that I made this modification only in a small part of the code to
F> test it before extending it to the whole program, I wonder if it's
F> really worth to go on only to make the code more readable.

You should get the performance back if you use the single computed
offset instead of the pointer to pointer indirection.  alloc: will
spend a few more bytes than calloc, but that change in particular
won't account for any significant performance cost.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]