« Previous | Next » 

Revision a67c1605

IDa67c16056e2ee9024b1ee62b5f7be4f6bab0afc8
Parent aeff4057
Child 3487ebc9

Added by Christian Müller over 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