yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

Multicore JIT compatibility #118

Open jrx00e opened 9 years ago

jrx00e commented 9 years ago

In my app I"m seeing 50% startup speedup performance when using Multicore JIT before I protect with ConfuserEX. After protection not seeing the performance bump anymore. Are there any particular protection settings that might allow the Multicore JIT to still provide the speedup.

yck1509 commented 9 years ago

Please provide more information, such as what protection you used, the version of .NET Framework, etc.

jrx00e commented 9 years ago

.Net 4.5.1 Here are the protections currently used: anti ildasm anti tamper constants ctrl flow anti debug invalid metadata ref proxy resources

Also, during startup there is reflection being used to scan some plugin dlls and load at runtime. Is there some settings that might cause issues with reflection? Without protection seeing startup times ~2-3 sec. With protection ~12sec for startup.

yck1509 commented 9 years ago

I would say most likely it is caused by the usage of Anti Tamper and Control Flow Protection. Anti Tamper Protection decrypts all method codes at startup, while Control Flow Protection has extra overhead on each protected method. You might want to try disabling these two protection and see if the performance improved.

Ruffio commented 9 years ago

@yck1509 no response since 5. dec. 2014. This should be closed

Ruffio commented 8 years ago

@jrx00e do you have a sample that the dev. can have a look at or is it not relevant anymore and can be closed?