If you run this code and monitor the output, you see it begins by appending titles very quickly but soon slows to a crawl. A quick check of top shows that the computer has gone into swap.
如果运行这段代码并监视它的输出,可以看到它首先会非常快速地追加标题,然后又马上减缓下来。
If this slows decision-making, so be it.
如果这会放慢决策,就让它放慢吧。
It slows down the next programmer in the code, as they have to think instead of just flowing through the conditional, if that makes sense.
这会减慢未来程序员使用这段代码,因为他必须去思考这段代码如何讲的通,而不是顺着条件去看。
应用推荐