"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here are the timings for my machine. With this type
of program, the results will depend on the relative
performance of the hard disk, the CPU, the memory,
and the caches.
Even on a single machine, the results depend on the operating system kernel, and most importantly, with the build of perl. My vendor perl is an unusual build, and my own build is more tuned to my machine. The kernel I have been running, 2.4.22-6.ll.rh80, is an experimental low-latency kernel used for real-time applications. The file system is ext3.
If you prefer lower case to make the output look better, just use the lc function instead of the uc function. I think the lesson is that performance improvements are often difficult to generalize, so you have to try it on your own system and see what works. UPDATE: The Code Smarter suggestion is very good. For the Storable code, timings for the vendor perl on 2.4.22-6.ll.rh80 the timings are down to about 0.21 seconds and with my perl they are at about 0.13 seconds - too fast for my primitive benchmark.
It should work perfectly the first time! - toma
In reply to Re: Re: Re: Finding dictionary words in a string.
by toma
|
|