shau-lok / google-gson

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

Final keyword will not increase performance (significantly) #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In document:

http://developer.android.com/guide/practices/design/performance.html

in section:
Performance Myths

You can find that final fields, and classes do not increase performance.
You should try increase performance in other ways (e.g. by modifying algorithm)

Because GsonBuilder and Gson are final, currently I cannot registerTypeAdapter 
for tree type (I saw that this will be possible in next version). So currently 
I cannot use this project, because of this simple reason. Removing final 
keyword would help to use this project in non-standard cases.

You can find more:
http://www.ibm.com/developerworks/java/library/j-jtp1029.html
http://www.ibm.com/developerworks/java/library/j-jtp04223.html#N100A7

Original issue reported on code.google.com by piotr.au...@gmail.com on 11 Feb 2011 at 1:29

GoogleCodeExporter commented 9 years ago
Just use GSON from subversion?

Original comment by limpbizkit on 11 Feb 2011 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 14 Feb 2011 at 10:18