radub
05-09-2002, 12:41 PM
I am concerned with some of the helper functions performance.
Profiling some code, on the emulator, I found out that:
on a pretty complicated sequence, repeated for 3 million times that's executed in 5 secs, adding a STRCMP call adds 10 secs to the total execution time! It means 2/3 of the time is spent in STRCMP! if adding STRLEN too I end up with 21 secs total time - 3/4 of the time doing STRCMP & STRLEN. For comparison, using "string.h" functions (strcmp & strlen) results in only 1 sec overtime. Please compare 1 sec with 16 secs!
I'd like to know if this happens on BREW 1.1 only or you had similar experiences on BREW 1.0
Thanks
Radu
PS: ISHELL_CreateInstance is extremelly expensive too - 13 secs for the above mentioned loop...
Profiling some code, on the emulator, I found out that:
on a pretty complicated sequence, repeated for 3 million times that's executed in 5 secs, adding a STRCMP call adds 10 secs to the total execution time! It means 2/3 of the time is spent in STRCMP! if adding STRLEN too I end up with 21 secs total time - 3/4 of the time doing STRCMP & STRLEN. For comparison, using "string.h" functions (strcmp & strlen) results in only 1 sec overtime. Please compare 1 sec with 16 secs!
I'd like to know if this happens on BREW 1.1 only or you had similar experiences on BREW 1.0
Thanks
Radu
PS: ISHELL_CreateInstance is extremelly expensive too - 13 secs for the above mentioned loop...