#: 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.
|