Hi all,

Steve, I think what you have mentionned here is very interesting... We 
don't have so much informations (dev guide, forum...) about performances on 
iOS related to Java Objects. It's very abstract since we don't know exactly 
how java object are converted in objective C. 

I know in Java difference between StringBuffer/Builder, Hashtable/HashMap 
etc but it's pretty difficult to apply this to ios platform. You said that 
replacing some java object "increase performance by a factor of 3.5" on iOS 
: how did you the benchmark ? I think it could be interesting to have more 
documentation about performance linked to the platform.

Thanks,

Jérémy.

Le mardi 16 juillet 2013 21:38:57 UTC+2, shannah a écrit :
>
> I have used this one with very few modifications in CN1 projects.
> https://github.com/greyson/j2me-json
>
> For performance reasons, I changed StringBuffer to StringBuilder, 
> Hashtable to HashMap, and Vector to ArrayList throughout the library. 
>  (This increases performance by a factor of 3.5 on iOS)
>
> I don't have my changes handy right now, but I'll post them when I get a 
> chance.
>
> Steve
>
>
> On Tue, Jul 16, 2013 at 12:35 PM, Pai Peng <[email protected] 
> <javascript:>> wrote:
>
>> Hello all,
>>
>>
>> I would like to use the JSONObject and JSONArray in Codename One project 
>> for creating JSON string. I have tested json-simple Java library(
>> https://code.google.com/p/json-simple/), it works great on Simulator, 
>> but not possible on Android or iOS device.
>> I have also tried to compile the json-simple source code in my project, 
>> but got error StringReader class not found.
>>
>> Now I want to ask, How can I do this job under Codename One?
>>
>> Thank you all.
>>
>>
>> Regards,
>>
>> Pai
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> http://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/229ce175-85ac-4e24-ae2f-43ec3b5edb75%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Steve Hannah
> Web Lite Solutions Corp.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f7d2d9ab-47b5-4d34-9a21-4224a65e09ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to