Does Java Security Manager decrease performance?

2019-07-12 16:15发布

问题:

Does implementing the Java Security Manager result in decreased performance?

回答1:

That depends entirely on the details of the implementation, and on the application.

It's certainly possible to implement a Security Manager that takes a long time to check certain permissions and an application that requires these premissions to be checked very frequently, resulting in horrible performance.

But typically, checking permissions does not happen often enough to cause significant performance decreases.