3 ms·
If you’re doing web application development the absolute first stop on performance tuning is caching static content, pre-rendering every view possible, and hand
by bevekspldnw 3y ago
If you’re doing web application development the absolute first stop on performance tuning is caching static content, pre-rendering every view possible, and handling everything else with thoughtful db indexing.
That’s always going to be the biggest performance jumps, but I think a lot of people end up doing a lot of other marginal improvements prior to nailing those basics.
- jiggawatts 3y agoSomething I’ve noticed is that web developers generally have no idea about the performance of different operations even to the nearest three orders of magnitude. Errors of six to ten orders of magnitude are common. Similarly, obtaining useful metrics is absurdly difficult. Artificial load tests for example tend to be too repetitive and hence are too easily cached compared to real user workloads. I just watched a developer tuning a query over a 100 GB database but he had the query tool open in an IDE on his laptop… which meant he was benchmarking his home internet and the corporate VPN more than the query!
- bevekspldnw 3y agoYes, and everything is super context dependent. The optimizations one would apply to say, a search engine, versus a web mail interface, are quite distinct.