Hacker News new | past | comments | ask | show | jobs | submit login

Here’s one that can be widely applied - from inside the cpu to your daily commute:

context switches are expensive

… and yes, sometimes so expensive that not knowing this might, indeed, have a 10x penalty.




Can someone care to elaborate more on this?


Excepting kernel scheduling, dealing with the set of problems i,j,k and being interrupted to deal with the set of problems x,y,z means all your short-term memory dealing with i,j,k disappears, and whatever mental work you’ve done to deal with i,j,k needs to be repeated once x,y,z is “problem solved” - but that’s a waste of time, compared to solving i,j,k completely and then moving on to x,y,z, and it’s annoying for the person solving the problems




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: