in reply to Re^4: Question about curious performance of if...elsif block
in thread Question about curious performance of if...elsif block
Did you try my second script on your system?
No. Because it would not run here.
ok, one more time. try embedding my subruotine in a loop reading /proc/pid/status and measure it. THAT's my point.Then it is fairly obvious that the reason for the differences you are concerned about have nothing to do with that subroutine and every thing to do with the code that is calling it. Ie. All your concentration on the subroutine is a complete red herring.
It seems fairly clear to me that you are misinterpreting the data you are reading. What timing do you see if you comment out the subroutine call entirely?
But don't bother with "ok, one more time.". Cos I almost certainly wouldn't understand it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Question about curious performance of if...elsif block
by markseger (Beadle) on Jan 16, 2012 at 20:18 UTC | |
by jethro (Monsignor) on Jan 19, 2012 at 10:21 UTC | |
by bulk88 (Priest) on Jan 18, 2012 at 13:55 UTC |