Hi,
I am not sure if I am writing this in the correct group, but i couldn't find
a group that seemed to be more obvious to ask this question. I have been
searching all over the internet and can't seem to find the answer to this
eaither.
What are the performance benefits and drawbacks of obfuscating a program.
The total size, before Obfuscation, is 180k and total size, after
Obfuscation, is 164K. I am not sure if that information will help. Or if
someone doesn't know the answer outright, can some direct me to an article
that explains the benefits and drawbacks of Obfuscation.
Thank you,
Paul
Pete - 04 Sep 2003 19:21 GMT
Hi,
As I understand it, basic obfuscation simply involves changing (encrypting
maybe?) most of the variable/method names stored in your assembly. I don't
think there are any performance problems with it as I don't think any actual
code is being changed.
A google search will almost certainly throw up a wealth of information.
-- Pete
> Hi,
> I am not sure if I am writing this in the correct group, but i
[quoted text clipped - 9 lines]
> Thank you,
> Paul
Michael Pearson - 04 Sep 2003 23:02 GMT
Basically, Obfuscation takes your variable and function names, and shortens
them to something harder to understand. It keeps people from taking your
EXE's and assemblies and deompliing them into human readable source code.
Example:
Public Sub GetCustomerList(nCustomerID as Int32)
That might get translated to something like
Public Sub A(X as int32)
If someone were to decompile your App, a function called A() that takes a
parameter called X that's an int32 doesn't tell you much. I think since it
makes things a bit smaller, that makes your compiled code a bit smaller.
I doubt that you'll see any real performance gains. It will be faster since
the DLL is smaller, but how much faster is "faster" will be hard to tell.
Michael
> Hi,
> I am not sure if I am writing this in the correct group, but i couldn't find
[quoted text clipped - 8 lines]
> Thank you,
> Paul
Bill Wert - 30 Sep 2003 23:32 GMT
Hi Paul,
In general, I would suspect that code obfuscation isn't going to incur any
real performance penatly. The best advice I can give you is to measure
before and after the obfuscation process, and see what the results are.
Another thing you can look at is the IL ouput for the two binaries, using
ILDasm.exe from the SDK.
Thanks,
Bill Wert
CLR Performance Test Team
------
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Paul" <paul@gotheta.com>
| Subject: Obfuscation
[quoted text clipped - 9 lines]
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.performance:5119
| X-Tomcat-NG: microsoft.public.dotnet.framework.performance
|
[quoted text clipped - 10 lines]
| Thank you,
| Paul