oopexpert commented on issue #242: get a hands on ... URL: https://github.com/apache/tomcat/pull/242#issuecomment-586633902 I did the performance measurement. My setup: i5 4440 CPU 3,1 GHz 10.000.000 calls on doOptions Current implementation: 1,381 seconds My implementation: 3,852 seconds trace allowed evaluation mocked (omit reflection) As expected: My implementation is 3 times slower under these conditions. Further execution analysis shows that the reflection stuff the "trace allowed" evaluation does (even without executing "getAllowTrace") will take 11,814 seconds alone!!! Let's do the math: My implementation: 1,381 + 11,814 = 13,195 My implementation: 3,852 + 11,814 = 15,666 So the performance decreased by only 18% considering the reflection stuff at least partially. The main point here is: we have 10 million calls... So to say that this is a problem is the same as to say: "We have a problem JAVA. Let's write all our programs in Assembler so everything is faster!"
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org