Is there a performance hit when running obfuscated code? [closed]

非 Y 不嫁゛ 提交于 2019-12-10 17:10:16

问题


All,

I am proposing the addition of code obfuscation to the standard build process at my organization. One of the questions being asked is whether there is a performance hit to running obfuscated code vs. running unobfuscated code.

What is your experience? Have you seen a reduction in performance at runtime because you obfuscated your Java or C# code?

Thanks,

VI


回答1:


It depends on how you are obfuscating it. If you use one of the tools that replaces all the names of objets and functions, then there should be no change at all. The compilers don't care what you call anything, whether it's useful to a developer (fetchProjects()) or just (funcA()).




回答2:


You may wish to read about my over-obfuscation experiments: Impact of Flow Obfuscation on Performance.



来源:https://stackoverflow.com/questions/2646216/is-there-a-performance-hit-when-running-obfuscated-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!