开发者

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

开发者 https://www.devze.com 2022-12-27 13:44 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_JAVA百科
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_JAVA百科

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

Improve this question

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


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()).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消