jducoeur: (Default)
[personal profile] jducoeur
Heisenprofiling, verb: wasting unnecessary time trying to figure out why your inner loops are still running slowly after optimization, only to realize that it's because the profiler hooks are slowing it down...

(no subject)

Date: 2015-01-09 02:21 pm (UTC)
From: [identity profile] metahacker.livejournal.com
Heh. I've done that with printf-debug induced slowness...

(no subject)

Date: 2015-01-09 02:27 pm (UTC)
From: [identity profile] goldsquare.livejournal.com
A microsecond or two?

Unless you are doing HFT, it's time to say "enough" and deal with aggregates of operations.

(no subject)

Date: 2015-01-09 02:26 pm (UTC)
From: [identity profile] goldsquare.livejournal.com
Years ago, with insufficient experience, I was trying to debug a device-driver problem. I used printfs. Stupid.

Eventually I created an in-memory array, updated that with integer data which corresponded to information I wanted, and that was "fast enough" to expose the issue.

Many years later, on a Connection Machine, we discovered that asking for the current day/date would bring all processors to a screeching halt while the system propagated the correct date/time to every processor. Also while trying to profile behavior and performance.

It's not easy.

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags