albibacsi

code efficiency

Mar 13th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. cpu, memory, disk, network slides!
  2.  
  3. You don't know what the problem is until you measure it
  4. Always look for the easy wins
  5. Understand what's under your control
  6.  
  7. Profile the application (memory usage, ...)
  8. Debug build vs. release build
  9.  
  10. profile the cpu, disk io activity as well!
  11.  
  12. only load if you need a file if need it!
  13. reads are faster than writes
  14. write in big chunks of buffers (64-256 kB)
  15.  
  16. minimize network latency
  17. combine multiple requests to one
  18. compress assets, if required
  19.  
  20. collection types beyond basic arrays and dictionaries
  21.  
  22. caching for web apps
  23. https://developers.google.com/speed/pagespeed/ or http://yslow.org/
Add Comment
Please, Sign In to add comment