[Bug 749] sun.applet.PluginStreamHandler#handleMessage(String) really slow

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sun Jul 17 03:27:51 PDT 2011


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=749





--- Comment #2 from ricky <rickyepoderi at yahoo.es>  2011-07-17 10:27:50 ---
I have just read this thread:

http://old.nabble.com/RFC%3A-Patch-for-Bug-749-%28sun.applet.PluginStreamHandler-handleMessage%28String%29-really-slow%29-tt31993146.html

And I want to clarify the performance penalty is not in the split but in the
concatenating part. The current code splits the message, does some stuff with
the first tokens (I think they are for internal use) and then joins the rest to
pass them to the next layer using a loop. The problem is in this final loop. 

If you check my patch, the idea is pretty simple, replacing the loop (100000
concats in my case) for one substring call. Here it's where the benefit is got.


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the distro-pkg-dev mailing list