4 ms·
It takes real effort to write code that is mindful of power draw.
by andrewstuart 1y ago
It takes real effort to write code that is mindful of power draw.
- kingstnap 1y agoWriting code that is mindful of power draw is the same as writing fast code. Race to yield to the os as soon as you can. Minimize data movement. Use efficient algorithms. Be mindful of abstraction overhead, etc.
- cosmic_cheese 1y agoAnd if the platform you’re working with gives you the means to easily offload appropriate tasks to increasingly-ubiquitous efficiency cores, it’s probably a good idea to do so. Your app will feel more responsive as a side effect since the main thread and P-cores won’t be as busy.
- JohnBooty 1y agoIn my experience, it can be quite a struggle to achieve this at one's day job, who often does not like to allocate time for such things.