in reply to Re: Pls help optomize - ksh version 60% faster!
in thread Pls help optomize - ksh version 60% faster!
I would usepush @rptType, $rptType unless @rptType; push @rptType, $rptType unless grep /$rptType/, @rptType;
Don't you think this would be faster than the grep, besides the fact that (I think) a grep for $rptTyp being 'a' would match a stored $rptType of 'XaX'.push @rptType, $rptType unless $seen{$rptType}++;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pls help optomize - ksh version 60% faster!
by davidrw (Prior) on Sep 29, 2005 at 01:29 UTC |