Pythonic code vs. Performance ukasz K kol Who am I? Senior - - PowerPoint PPT Presentation

pythonic code vs performance
SMART_READER_LITE
LIVE PREVIEW

Pythonic code vs. Performance ukasz K kol Who am I? Senior - - PowerPoint PPT Presentation

Pythonic code vs. Performance ukasz K kol Who am I? Senior Python Developer @ STX Next Speaker @ PyCon UK, PySS and local meetups Optimization enthusiast Agenda Introduction Demo! Summary Q&A Introduction


slide-1
SLIDE 1

Pythonic code vs. Performance

Łukasz Kąkol

slide-2
SLIDE 2

Who am I?

  • Senior Python Developer @ STX Next
  • Speaker @ PyCon UK, PySS and local meetups
  • Optimization enthusiast
slide-3
SLIDE 3

Agenda

  • Introduction
  • Demo!
  • Summary
  • Q&A
slide-4
SLIDE 4

Introduction

slide-5
SLIDE 5

Performance aspects

  • CPU time
  • Memory
  • I/O operations
slide-6
SLIDE 6

You can into performance

  • Plan
  • Measure
  • Monitor
  • Identify bottlenecks and quick-wins
  • Optimize them all! (?)
slide-7
SLIDE 7

Profiling tools

  • cProfile
  • memory_profiler
  • sys
  • dis
slide-8
SLIDE 8

DEMO!

slide-9
SLIDE 9

Summary

slide-10
SLIDE 10

Summary

  • Predict
  • Don’t trust presumptions
  • Profile everything
  • Calculate ROI
slide-11
SLIDE 11

Q&A

lukasz.kakol@stxnext.pl

lukkol.pl/ep2018-performance

goo.gl/gPDTuN

github.com/lukaszkakol/python-performance