Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Optimization Story

An Optimization Story

This is about why and how we optimized one of our background jobs. How it went and what we learned from it.

László Bácsi

October 02, 2013
Tweet

More Decks by László Bácsi

Other Decks in Programming

Transcript

  1. The Ideas • Don’t update unnecessarily • Don’t pre-calculate stuff

    we would recalculate anyway • Schema change – extract embedded 13. október 2., szerda
  2. The Process 1. Measure baseline 2. Implement an idea 3.

    Measure performance improvement 4. Repeat 13. október 2., szerda
  3. The Bonus • 1+n queries, caching with IdentityMap • Don’t

    GC during a job (dangerous) • GC optimizations 13. október 2., szerda