3 ms·
Unless you’re doing your computation on DDR5 ram you’re easily looking running your code 100 times slower when you’re hitting L1 and L2 cache misses. Add to thi
by devjab 2y ago
Unless you’re doing your computation on DDR5 ram you’re easily looking running your code 100 times slower when you’re hitting L1 and L2 cache misses. Add to this that even a relatively simple loop over a 1000 entities where you alter 4 properties on each will run 20 times slower with a class hierarchy compared to a flat structure and you’re quickly adding a large performance loss to what you’re already paying for your 100.000 api calls.
Which might be worth it if something like Clean Code by the book was actually easier to read, maintain or do any form of team work on. I’d wager it’s not just your hardware which is going to have memory issues when you split that code out over 9 files and 3 projects though. It’s very likely that your own memory load struggles to cope, especially if it’s not code you’ve worked on recently.