Hi,

I've been using annotations on a Android project for a parsing XML
data into a VO object, and I came to notice that retrieving Annotation
info from a class or field is very slow. On a 1k iterations loop it
gives me a 100x fold performance drop vesus a specific parsing
algorithm version. Caching the annotation data on the first run, gave
me results very close (~10ms diference) on the specific algorithm
version.

My point is: there's any known deference in the implementation of
annotations from the Dalvik VM vs the standard JVM that is to blame of
such a poor performance? I must add that while the garbage collector
didn't even run on the specific/cached annotations version of my
algorithm, it triggered hundreds of times on the normal version (which
retrieved annotation info every run). Which kind of pin points where
is the problem is, but it doesn't make sence at all, as my annotations
properties consist purely on 4 string, from which 2 where empty.

Thanks in advance,
Bruno

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to