Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Solaris + UltraSparc T2 + Threads: Avoid LCK's

by RMGir (Prior)
on Apr 23, 2009 at 11:22 UTC ( #759510=note: print w/replies, xml ) Need Help??

in reply to Solaris + UltraSparc T2 + Threads: Avoid LCK's

Edit: Ignore all of this, it looks like BrowserUK figured it out just above...

I don't have a sufficiently recent threaded perl build around to test this theory, but I'd look at that assignment to $tmp in the inner loop in test2.

What happens if you just copy the int(rand(10)) into the inner loop without an assignment?

Of course, if this turns out to be the answer, WHY an assignment to a thread-local variable would cause that is a different question...

  • Comment on Re: Solaris + UltraSparc T2 + Threads: Avoid LCK's

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://759510]
[Corion]: Hmmm. I feel a Meditation coming on. I wrote a module, DBIx::PivotQuery, which returns a table-like set of rows (AoA) but some columns are generated from column values, like in an (Excel) pivot table or a ROLLUP command
[Corion]: My current approach for subtotals involves rerunning the given query, with the hint to the user that they should use a temporary table if they want better performance.
[Corion]: But I could create that temporary table in the module and use it for the improved perfomance directly instead.
[Corion]: And the question is, what would be better/preferred ;-)
[Corion]: Hmm - not exactly like the ROLLUP command. Ah well.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-02-23 15:26 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (347 votes). Check out past polls.