Get the latest tech news

Memory optimizations to reduce CPU costs


Imagine that you are given the following task, with a file like this:Name,Department,Salary,JoinDate John Smith,Marketing,75000,2023-01-15 Alice Johnson,Fi...

Why we do that doesn’t actually matter, but the critical aspect is that we observed poor performance and high memory usage when using this approach. This saves us about 200 MB of memory, because we can now skip the padding costs by splitting the Item into its component parts. It makes perfect sense when you think about it, but it was quite a surprising result to run into when working on memory optimizations.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of cpu

cpu

Photo of Memory optimizations

Memory optimizations

Photo of CPU costs

CPU costs

Related news:

News photo

Doom runs surprisingly well on Anker Prime Charger — 150 MHz CPU and decent screen results in 'better than expected' FPS per mAh

News photo

Libre-Chip Awarded NLnet Grant To Prototype A CPU That Isn't Vulnerable To Spectre Flaws

News photo

Capcom asks PC Monster Hunter Wilds players to wait until Title Update 4 this winter for "CPU and GPU related optimizations"