[Pycon] [new paper] "Iskandar Setiadi" - Python Website is Slow? Think Again!
info a pycon.it
info a pycon.it
Ven 4 Gen 2019 05:21:39 CET
Title: Python Website is Slow? Think Again!
Duration: 45 (includes Q&A)
Q&A Session: 15
Language: en
Type: Talk
Abstract: As a Python avid user, we read a lot of articles that describe Python as a slow, interpreted language. At a certain point, some people start to blame the language itself for performance problems and consider to migrate their codebase to other languages. However, the success story of Instagram in handling four hundred million users has shown us that Python is not the bottleneck, but our codebase is.
In this talk, the speaker will share a tale of improving Python website performances in medium-sized enterprise (serving million users) that I’m currently working at. In a year, we finally achieved speed improvement from the average response time of 400 ms to 150 ms per request and we could save around $100k per year in AWS EC2 instance provisioning, which is around 60% of total cost.
Several key points that we have learned from our development process includes:
- Tracking database queries with Python decorator will reduce number of unnecessary queries
- Using an async framework does not guarantee your codebase is implementing it correctly
- Default configured third-party library is not always suitable for all use cases
- Utilizing memory profiler and pdb properly will help you in pinpointing application bottleneck
- Python for-loops vs generators
- And several other common pitfalls
Tags: [u'best-practices', u'web-development', u'aws', u'web', u'tornado']
Maggiori informazioni sulla lista
Pycon