4 ms·
For a true high performance you should use thread busy-spinning, CPU pinning and SPSC/MPSC ring buffers.
by 5ersi 20d ago
For a true high performance you should use thread busy-spinning, CPU pinning and SPSC/MPSC ring buffers.
- Kenji 20d ago[dead]
- VorpalWay 20d agoIt all depends on what you are doing. I do embedded with strict realtime requirements. CPU pinning would not be an option. I have also done software that should use as little resources as possible (but still be quick) to coexist with other software on the same hardware. All of these are different, valid, meanings of high performance. You need context. An interactive IDE is yet another thing that needs to be high performance in yet another way.
- mahboi 19d agoAlso, using 100% CPU without a good reason can cause thermal throttling that makes it slower for the sections that actually need 100% CPU
- deleted 19d ago[deleted]
- HackerThemAll 19d agoSpinning is covered in the article.