J2ME String en/decoding

2010-03-23 02:10:26 by Luca Tagliaferri
Today we found out that few J2ME mobile phones were showing very poor performances when dealing with String deconding and enconding in UTF8 format. Hence we decided to check if it was possible to replace the native en/decoding functions with other optimized ones. The results are the ones shown below while the functions used for encoding and decoding can be downloaded here. As it can be seen in one of the cases the performace gains are impressive.

 

Test / time (ms)First phone (with native functions)First phone (with optimized functions)
Test 17360270
Test 216477372
Test 37486327

Second phone (with native functions)Secondo phone (with optimized functions)
Test 1262133
Test 2369122
Test 3372

202 

 
 
 
Posted in Programming

4 Responses to "J2ME String en/decoding"

  1. Zag says:

    The download link may be broken(?) Ho provato anche sotituendo i fasori nell'indirizzo, ma nulla!

    1. Luca Tagliaferri Says:

      Non è vero ! funziona ed anche bene (anche senza usare i fasori)

      1. Zag says:

        Cavolo!... ero in modalità bifasica e il plugin di ff ha un bug. Bella libreria... soprattutto per la quantità di commenti! ghghgh...

        1. Luca Tagliaferri Says:

          Grrrrrrazie! :D

    Leave a Reply

    Not logged in. You have to fill the data below to leave a post. Please register here
    The address cannot be found!!

    Nickname:

    Email:

    Antispam code:

    XHTML: You can use these tags: [ a abbr acronym b br blockquote code pre em i strike strong ]


    To send a trackback, use this url.