OT: why do people use python when it is slow?
Ola Fosheim Grøstad via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Oct 14 11:55:26 PDT 2015
On Wednesday, 14 October 2015 at 18:37:40 UTC, Mengu wrote:
> websites? nope. like booking.com, airbnb.com, reddit.com are
> popular websites that have many parts which have to be dynamic
> and responsive as hell and they cannot use caching,
> pre-generated content, etc.
They can if they know what they are doing. E.g. Reddit can push
indexes to their CDN (Cloudflare?) for commonly requested topics.
There are many many layers and options for caching or delaying
recomputation (e.g. eventual consistency strategies).
> using python affect the performance of your website.
No. You can do a lot of computation in Python in 10ms. Using
Python over C++/Go affects the number of instances, not the
performance.
You don't handle one request at the time, so if you use Python
you handle fewer concurrent requests than in Go. That is the only
difference unless you are doing something real time (like a game
server).
More information about the Digitalmars-d-learn
mailing list