Update UnderstandingTiming.md

This commit is contained in:
Mike Thompson 2018-02-17 20:34:36 +11:00 committed by GitHub
parent 108f237111
commit 7f750aac47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -4,20 +4,20 @@ Some notes on the "Timing" tab in `re-frame-trace`.
Two reasons: Two reasons:
1. Accurately timing something in the browser is almost 1. Accurately timing something in the browser is
a fool's errand. One moment it takes 1ms and the next it a fool's errand. One moment it takes 1ms and the next it
takes 10ms, and youll never know why. Noisy. takes 10ms, and youll never know why. Noisy.
So, don't ever base decisions on one set of timings. So, don't ever draw conclusions from one set of timings.
Click the "replay" button ([#115](https://github.com/Day8/re-frame-trace/issues/155)) a few times to see if you Click the "replay" button ([#115](https://github.com/Day8/re-frame-trace/issues/155))
get stable numbers. a few times to ensure the numbers are stable.
2. Don't freak out about any apparent slowness. Not just yet, anyway. 2. Don't freak out about any apparent slowness. Not initially, anyway.
After all, you're running a dev build, right, not the After all, you're running a dev build, right, not the
production build? And I'm guessing you're also production build? And I'm guessing you're also
running a dev build of React? And even `re-frame-trace` itself will add running a dev build of React? And `re-frame-trace` will itself also add
its own drag too, what with all that creating and analysing of trace. drag, what with all that creating and analysing of trace.
So, run the production version of your app first, before So, run the production version of your app first, before
deciding you have a performance problem. Something what deciding you have a performance problem. Something what
@ -28,7 +28,7 @@ Two reasons:
"parts" of an Epoch. Is most the time going in views, or "parts" of an Epoch. Is most the time going in views, or
maybe one view in particular? Or in maybe one view in particular? Or in
one subscription, compared to the others? one subscription, compared to the others?
And, even then, remember point 1 (above). And, even then, keep in mind point 1 (above).
## Know Your Epoch Timeline ## Know Your Epoch Timeline