4 ms·
Nice. I love these posts so much I keep a collection of them. For this though “one of the easiest ways to make a program faster is to make it do less work”. Co
by boyter 5y ago
Nice. I love these posts so much I keep a collection of them.
For this though “one of the easiest ways to make a program faster is to make it do less work”. Correct me if I am wrong but isn’t that the only way to make programs faster? Do less work on a single core is the only method I have ever seen. Everything, from memory alignment to SIMD is just reducing the amount of steps. Would be happy to know an exception to this.
- rageoholic 5y agoThere's also stuff you can optimize like cache efficiency. Sometimes you can do more work on an array than a linked list but the array is faster because linked lists miss cache pretty consistently.