in reply to Re^8: bit by overhead
in thread bit by overhead
You are correct, that is a bug in the benchmark. I'd code it this way:
sub from_cache2 { my $ticker = shift; return [ map unpack("A10FFFFL", $_), @{ $cache2{$ticker} } ]; }
Unfortunately, it takes the edge off the speedup :(
C:\test>880868-2 Rate orig mod1 orig 8.01/s -- -36% mod1 12.4/s 55% --
Still worth having but less so. If you are the OP of this thread, then you should seriously consider the ideas in the last paragraph of my previous post.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: bit by overhead
by Anonymous Monk on Jan 07, 2011 at 17:39 UTC | |
by BrowserUk (Patriarch) on Jan 07, 2011 at 18:14 UTC |