▲ | coldtea 6 days ago | ||||||||||||||||
>Simpler algorithms are usually faster for small N, and N is usually small. This mentality is how we ended up with cpu and memory hogging Electron apps... | |||||||||||||||||
▲ | JohnKemeny 6 days ago | parent | next [-] | ||||||||||||||||
That's not an accurate description. For example, it is common in sorting algorithms to do an n² algorithm like bubble sort when the list to sort is small (e.g. <50), whereas when it's larger, we do an n log n algorithm like merge sort. The issue is that merge sort does recursion, which comes with some extra cost, so that an n² algorithm beats an n log n algorithm, provided n is small. It has nothing with your criticism to do. | |||||||||||||||||
| |||||||||||||||||
▲ | MrBuddyCasino 6 days ago | parent | prev [-] | ||||||||||||||||
Electron a) isn’t really slow for what it does b) introduces many layers of abstraction, leading to larger memory consumption compared to „native“ apps c) is certainly not algorithmically unoptimized, it runs on a software stack that has been tuned like few others using billions of dollars You just loosely associated words and concepts that occupy a similar emotional niche. |