How to minimize the cost of context switching · HackerTrans