ninjaneer
ninjaneer

Reputation: 7031

Android: Debug vs. Release (SDK) performance

I've noticed that launching some of the activities in the Android Emulator while running Debug takes about 11 seconds to show, but when I compile it for release, activities take only about 2 seconds to show. I have no breakpoints set. I only have several textviews/editviews/a mapview in these layouts running 2.1 (API Level 7). Is this normal?

Upvotes: 3

Views: 2636

Answers (2)

sachin garg
sachin garg

Reputation: 1316

and also, debug mode stores values of all the variables in all the steps. so this time difference will increase with increase in no of variables.

Upvotes: 3

tier1
tier1

Reputation: 6433

Yes, debug mode handles exceptions a little differently than release mode. It allows you to see in more detail of what is going on. But it also makes your program run slower..

Upvotes: 6

Related Questions