Links tagged “optimization”
9 links, newest first.
purplesyringa.moe
Quadrupling code performance with a "useless" if - branch prediction, aliasing and autovectorisation, taken apart with benchmarks.
cybertec-postgresql.com
Why aggregating first and joining the lookup table afterwards beats joining five million rows then grouping, with the execution plans that explain the gap.
peterbe.com
Benchmarks several ways to remove duplicates from a Python list, and finds list(dict.fromkeys(seq)) fastest when insertion order must be preserved.
arxiv.org
Proposes learning the optimisation algorithm itself with an LSTM, rather than hand-designing the update rule.
numba.pydata.org
Open-source JIT compiler that translates a subset of Python and NumPy code to machine code through decorators, with no separate compilation step.
medium.com
Measures how JavaScript parse and compile time dominates web app start-up on mobile, and lists what developers and browser vendors can each do to shorten it.
medium.com
Walkthrough of splitting a React bundle by route with Webpack and applying the PRPL pattern to cut first paint and time-to-interactive on mobile.
push.cx
How to implement the flyweight pattern in Python, using __new__ and a weak-reference pool so that identical objects are shared instead of duplicated.




