« Previous | Next » 

Revision 3573f6de

ID3573f6def0be42a0559dbb935d73c1eaf52eb14d
Parent c9f1e6c4
Child d33b483c

Added by Christian Müller about 7 years ago

[TASK] Improve security performance

This solves two problems. First it eliminates the need to use ``eval``
for AOP runtime expressions by caching the found expressions in a
PhpBackend during compile time and requiring the code as actual
closures during runtime. This also reduces the cache size as the
closure code is no longer included as strings.

Additionally the ``methodPermissions`` data is changed to be static
as it will be the same across all instances of ``MethodPrivilege``
anyway. This drastically reduces memory usage and also runtime due
to less cache requests which are especially costly for a file based
cache.

Change-Id: If6ccf8d7bbbe25cfcd6596a88a6192bf051bc9f5
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted