in reply to Re: Class::Std::Fast cache and threads
in thread Class::Std::Fast cache and threads
Have you (or anyone) actually run any benchmarks to see how much time using this cache option actually saves?
Because in my (admittedly simplistic) tests, it actually runs slower! Only by a microsecond or two, but still slower.
And when I look inside and see that the only thing it caches is the scalar ref used as an id, that makes sense. That is, it makes sense that it is slower.
It makes no sense (to me) to cache this at all. Indeed, if the caching was removed completely, it would run faster still because of the absence of the 'is-it-cached' tests.
And without the caching, the OP problem just 'goes away'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Class::Std::Fast cache and threads
by Boldra (Curate) on Oct 13, 2010 at 15:35 UTC | |
by BrowserUk (Patriarch) on Oct 13, 2010 at 15:52 UTC |