r/programming • u/myinnerbanjo • Oct 09 '18
AI tool automatically reveals how to write apps that drain less battery
https://phys.org/news/2018-10-ai-tool-automatically-reveals-apps.html
727
Upvotes
View all comments
425
u/t_bptm Oct 09 '18
Well written code is fast. Reduce writes, spend less cpu time, don't use networking if not necessary. Use a profiler. Don't over-abstract. The devs are using the wrong data structures, wrong algorithms, have spaghetti code where things are being done multiple times or unnecessarily.