Wednesday, January 9, 2008

Service invocation performance

The whole service invocation exercise would not be complete without having an estimate of the performance of a service invocation. Activity invocation turned to be rather slow, due to the complex activity lifecycle transitions the invocation involves. Now those transitions would not occur when invoking services so I expected improvements here.

The measurement client can be downloaded from here. Note that this is just the client therefore the service application from the Invoking services post material also needs to be installed. Don't forget to update the sdk-folder and android-tools properties in the Ant build files. The client and the service applications need to be installed separately with adb install as described at an earlier post.

There are no surprises in the performance measurement client. As there are no lifecycle transitions in the client, the measurement could be performed in a simple for cycle. The average invocation time turned to be around 4 msec which is about 5-10 times faster than the activity invocation performance but is still something like 1000 times slower than a simple in-process Java call.


Maxim Yudin said...

It's interesting post :)

Gabor Paller said...

I would like your Android blog if I still spoke Russian. :-) I can still read Cyrillic but I hardly remember any words. :-)

Well, actually this is what I expected. Android has nice application separation but it comes with a price. OSGi has much better invocation performance but offers basically no separation.

Tough trade-off.

Maxim Yudin said...

Probably, I will write new articles on english and russian article, thought I know english language not very well.

Gabor Paller said...

Then share only program code, that's an universal language. :-)

vapernow said...

Hi everybody
What phone are you using? Which phone do you have the best application? IOS application. Android app. Sam Sung application. The best app stores in 2018. Quickly install the right app store for your mobile. These are the most installed apps:

- How to fix Play Store errors
- Play Store for SamSung
- Play Store for PC

I need your opinion to improve the app store better. Visit my homepage for the best free quality app: