Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.0
-
None
-
None
Description
As of release 0.5 when policy checking is in effect every incoming connection performs a policy lookup and then a policy settings fetch. The settings could be brought into C code space once to be cached and reused for the lifetime of the associated vhost policy object.
The result would be a savings in time and space as the settings fetch is a relatively expensive call through python, and the fetched settings are immutable and could be shared by all connections that use them.
The down side would be managing the cached settings to be sure they are updated and cleaned up when the associated vhost object is replaced through management access.