mkaring / ConfuserEx

An open-source, free protector for .NET applications
https://mkaring.github.io/ConfuserEx/
MIT License
2.37k stars 368 forks source link

Resource encryption slow application start #557

Closed andrewpros closed 2 days ago

andrewpros commented 1 week ago

Is there any way to make the resource encryption decompress any faster? The encryption is also compressing the resources, is there a way to disable this?

I'm not sure what is the expected speed here, but i have a small amount of resources in a WPF app, mostly small images, the total size of dll is about 6.5MB and it takes almost 5 second to run the app, so quite slow.

In fact im not even sure its the decompression or decryption, as if i recall compression is using LZMA so it should be fast at decompression.

Does anyone have similar result or have a workaround to at least make it a little faster to start?

andrewpros commented 2 days ago

It is due to control flow also enabled, without it its ok, fixed for me