From: William James Date: 2006-08-05T03:05:07+09:00 Subject: Re: For performance, write it in C - Part 3, Source code now available Peter Hickman wrote: > Peter Hickman wrote: > > I changed the use of the bool data type (which is really an int) to > > char and shrunk the size of the program and sped it up. > > > > real 0m1.885s > > user 0m1.649s > > sys 0m0.168s > > > > I think this is because the top most loop, when processing the top > > row, basically just zooms down a given row of the compared array. With > > four chars being packed in where one bool would be more of the tests > > will be using data that is available in the CPUs cache. > > > > > > > Sorry but I have to retract these timings. They were from the tests to > find the best gcc compiler settings and do not include the Perl pre > calculation for each run so they cannot be compared to any of the other > timings. Sorry about that. I wish that you would dump Perl and do everything in C.