in reply to BENCHMARK Re: number of unique characters in a string
in thread number of unique characters in a string
I expected 5x or maybe 10x faster for the C version but 22...
One thing to note. The original version of nUniqC() that uses the local array is quicker than the one (re)-using @_ despite my claims for the latter. Turned out it was an artifact of my own testing that gave me false readings. Not that it is going to get even close to merlyn's.
It's good to get a feel for the difference, and will make me renew my efforts to build my own version of Perl so that I will have that facility available to me.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: BENCHMARK Re: number of unique characters in a string
by Jenda (Abbot) on Mar 01, 2003 at 20:47 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2003 at 20:53 UTC |