https://bz.apache.org/bugzilla/show_bug.cgi?id=69643
Bug ID: 69643
Summary: DirResourceSet class retrieves canonical path too
frequently - follow up on bug 68054
Product: Tomcat 9
Version: 9.0.98
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
Created attachment 40015
--> https://bz.apache.org/bugzilla/attachment.cgi?id=40015&action=edit
Optimization proposal
When profiling start phase of our webapps, found a lot of time is spent in
calls to method getCanonicalPath() in DirResourceSet.
Tested a fix by keeping value for canonical path of parent folder when
iterating over its children. I get about 35% improvement on my side, going from
above 3 minutes to below 2 minutes. (test done with large webapp folder content
: 6k folders and almost 100k files)
Code modification I tested is attached.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]