On 12/09/2014 10:08, Mark Thomas wrote:
> On 12/09/2014 09:36, Konstantin Kolinko wrote:
>> Hi!
>>
>> Reviewing BCEL method Utility.swallowUnknownAttribute(...),  I think
>> the same approach can be used for all other attributes that we ignore,
>> ignoring their internal structure.
>>
>> That is: we know length of their data. In Attribute.readAttribute():
>>
>>         // Length of data in bytes
>>         length = file.readInt();
>>
>> I have yet to verify this with specification, but it looks promising.
> 
> I did a quick test using the newly added performance test and the Jira
> jars. It certainly works - no errors are reported - but there is no
> noticeable performance improvement. What it does do is remove a large
> chunk of code so, if your specification check confirms this is OK, I am
> +1 purely based on the simplification benefits.

I've tweaked the performance test to focus timing info on the BCEL part
of the code after some profiling showed a lot of time was being spent
reading the class files from the JAR. There is a performance improvement
here (5-10%) so if this change is spec compliant there is an even
stronger reason for doing it.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to