TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Hackers
from: Carl Kreider 71076,76
date: 1992-10-25 19:32:04
subject: #A bedtime story

#: 16779 S3/Languages
    25-Oct-92  19:32:04
Sb: #A bedtime story
Fm: Carl Kreider 71076,76
To: Hackers

I have an interesting story for you C programmers.

While working on ar, I changed the table structure to use less memory (so that
more would fit in 64k) and promptly discovered that compression times had
doubled.  After a bit of sleuthing, I discovered that the simple change caused
three double shifts (mul by 8) to be replaced by a call to ccmult for a mul by
6.  Profiling the code shows that ar was spending 50% of it's time in ccmult.

The moral?   Make up your own ;-)  But at the least you should consider using
pointers instead of arrays.

Carl

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.