[Bug 66178] Reduce garbage from strings in AbstractArchiveResourceSet.getResource

2022-07-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66178

--- Comment #6 from Joe Jackson  ---
Created attachment 38348
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38348&action=edit
after fix

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 66178] Reduce garbage from strings in AbstractArchiveResourceSet.getResource

2022-07-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66178

--- Comment #7 from Joe Jackson  ---
Created attachment 38349
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38349&action=edit
before fix

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 66178] Reduce garbage from strings in AbstractArchiveResourceSet.getResource

2022-07-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=66178

--- Comment #8 from Joe Jackson  ---
I've added the screenshots showing JFR profiling data before and after the
patch. The StringBuilder does still generate garbage, but it's reduced by about
3x - 4x. Mainly because there is less need to create as many new strings with
the changed code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org