This issue has been created
There is 1 update.
 
 
XWiki Commons / cid:jira-generated-image-avatar-1234027f-ddca-4ba5-9355-7d2ef9d8f7f6 XCOMMONS-3256 Open

Clearning the Velocity introspection cache is expensive

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-23629483-8b4d-43cd-8211-ed8d95f6d089 Michael Hamann created this issue on 07/Feb/25 15:17
 
Summary: Clearning the Velocity introspection cache is expensive
Issue Type: cid:jira-generated-image-avatar-1234027f-ddca-4ba5-9355-7d2ef9d8f7f6 Bug
Affects Versions: 11.10.10, 12.7-rc-1
Assignee: Unassigned
Components: Velocity
Created: 07/Feb/25 15:17
Labels: performance
Priority: cid:jira-generated-image-static-major-6ba47cd6-df9f-4a8d-b334-c22b4f4260be Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

1. Profile XWiki 15.10.16 with the reload empty page with UI benchmark
2. Analyze the profile.

Expected result:

The execution time of org.xwiki.velocity.internal.InternalVelocityEngine#cleanIntrospectionCache is almost nothing.

Actual result:

The execution time of org.xwiki.velocity.internal.InternalVelocityEngine#cleanIntrospectionCache is 8% of the total CPU time according to IntelliJ. This is because getting the field causes a lot of exceptions as the class hierarchy of the context has several levels and the field is only found after catching several exceptions for classes in the hierarchy that don't have this field.

 
 

1 update

 
cid:jira-generated-image-avatar-23629483-8b4d-43cd-8211-ed8d95f6d089 Changes by Michael Hamann on 07/Feb/25 15:17
 
Assignee: Michael Hamann