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
PR: https://github.com/apache/jmeter/pull/219
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
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4027