Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

HTMLForm::void submit(String submitKey,String submitVal) uses String to do bulk concatenation #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm refering to 'String params'

Using StringBuffer will bring down the byte code considerably.

Original issue reported on code.google.com by jkoo...@gmail.com on 17 Apr 2012 at 2:05

GoogleCodeExporter commented 9 years ago
We will probably never fix this.
StringBuffer is not the best approach either since it was dumped by modern 
versions of Java in favor of StringBuilder. In fact "a" + "b" is faster than 
StringBuffer.append() when compiled for a modern VM. 

Original comment by shai.almog on 17 Apr 2012 at 6:18

GoogleCodeExporter commented 9 years ago
Yeah unfort, not the case in J2ME JVM 1.3 :(

Original comment by jkoo...@gmail.com on 18 Apr 2012 at 8:29