About 18 results
https://rednafi.com/python/save-with-update-fields-in-django/ · 9 Nov 2022
Optimize Django model saves with update_fields parameter to generate leaner SQL queries and improve performance in tight update loops.
https://rednafi.com/python/outage-caused-by-eager-loading-file/ · 14 Oct 2022
Learn from a production outage caused by loading large CSV files into memory. Stream process files to prevent OOM errors and crashes.
https://rednafi.com/python/use-urlsplit-over-urlparse/ · 10 Sep 2022
Use Python's urlsplit instead of urlparse for faster URL parsing by skipping the rarely-needed params component in URL decomposition.
https://rednafi.com/python/preallocated-list/ · 27 Mar 2022
Understand CPython list memory allocation: how lists store pointer references, grow dynamically, and when pre-allocation with [None]*n helps.
https://rednafi.com/python/lru-cache-on-methods/ · 15 Jan 2022
Avoid memory leaks when caching instance methods with lru_cache by making cache containers local to instances instead of global.
https://rednafi.com/python/string-interning/ · 5 Jan 2022
Learn how Python's string interning optimizes memory by caching strings and using sys.intern() for custom string caching to improve performance.
https://codeklets.nl/episodes/399 · 19 Nov 2020
Deze aflevering hebben we Wander Hillen te gast. Wander mogen we wel omschrijven als een Haskell liefhebber.
https://jola.dev/posts/elixir-string-processing-optimization · 8 Apr 2019
This post was inspired by a thread I participated in on the Elixir forum