死代码即程序操作过程中永远不可能被执行到的代码。当程序中的变量变成不依赖于外部传过来的数据,被定义成常量时,便无法适应外界其他的变化,就会产生死代码。
找出任何可以删除的死代码。
动态编译器(尤其是在进行方法内联之后)通过许多方法来判断死代码。
Dynamic compilers, especially once method inlining takes place, have many more ways to determine that code is dead.
含有恶意代码或问题代码的广告会阻塞网络、降低性能、锁死整个页面甚至让浏览器崩溃。
An AD containing malicious or poorly written code could hog the network connection, degrade performance, freeze the entire page, or crash the browser.
应用推荐