Loading Pydantic models from JSON without running out of memory
Learn how to load large JSON files into Pydantic models using memory-efficient techniques like ijson and dataclasses.
Learn how to load large JSON files into Pydantic models using memory-efficient techniques like ijson and dataclasses.
Explains Java's new Compact Object Headers (JEP 519), detailing how they reduce memory usage and improve performance by compressing object headers.
Explains zero-copy reading in Go using slices, bytes.Reader, and bufio.Reader to avoid unnecessary data copying for performance.
A technical deep dive into reverse engineering the map compression and memory structure of the 1985 Commodore 64 game 'Endless' using 6502 assembly.
The author details their journey to reduce memory usage in their 'Mess With DNS' service by optimizing how IP address lookup data is stored.
Techniques to reduce memory usage by up to 20x when training LLMs and Vision Transformers in PyTorch.
A guide to 9 PyTorch techniques for drastically reducing memory usage when training vision transformers and LLMs, enabling training on consumer hardware.
Explores Project Lilliput's compact object headers in Java, which can reduce memory usage by 10-20% by shrinking the standard object header.
Explains how to reduce memory usage for multiple .NET services on a single machine by disabling server garbage collection.
Explains how to use bitwise operators and binary masks to store boolean flags efficiently in PHP, with practical examples.
Explores the performance impact of non-responsive images, focusing on memory waste and decoding time, with practical examples and data.
Explains how to use JavaScript prototypes for inheritance and method sharing, improving memory efficiency and code structure.