Bug 59885

Summary: Optimize css parsing for embedded resources download by introducing a cache
Product: JMeter Reporter: benoit.wiart
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description benoit.wiart 2016-07-19 12:47:42 UTC
the css parser is essential to test real world applications with
embedded resources download.
But it's heavy on cpu and memory allocations.

this commit add a lru cache which saves the url extracted from the css
file.
the key of the cache is the md5 of the css file.

the cache is not enabled by default (but should probably be)
To activate it, a value > 0 must be set for the key
'css.parser.cache.size' in the jmeter config file
Comment 1 benoit.wiart 2016-07-20 08:35:25 UTC
PR: https://github.com/apache/jmeter/pull/219
Comment 2 Philippe Mouawad 2016-07-31 18:50:27 UTC
Date: Sun Jul 31 18:50:01 2016
New Revision: 1754678

URL: http://svn.apache.org/viewvc?rev=1754678&view=rev
Log:
Bug 59885 - Optimize css parsing for embedded resources download by introducing a cache
Based on PR 219 contributed by Benoit Wiart (b.wiart at ubik-ingenierie.com)
This closes #219 on github.
Bugzilla Id: 59885

Modified:
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/CssParser.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/properties_reference.xml