Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
i18n 2.5.16
-
None
Description
The i18n ResourceBundleProvider is registered as ResourceChangeListener and configured to listen to all changes within the repository.
And if the change does not affect a languageRoot (that's probably the vast majority of changes), it will always open (and close) a ResourceResolver. This comes with some overhead (500-1000 µs, depending on setup).
It should be possible to exclude some paths from being considered at all by configuration (maybe already at the level of the registration of the properties of the ResourceChangeListener, otherwise as part of the onChange method), so that the creation of this ResourceResolver can be avoided. In this case no ResourceBundles will be detected below these configured paths.
By default /var/eventing should be excluded, so that the Sling eventing operations do not trigger this ResourceChangeListener.