c99250a4d619670f2a9410df121eff04fdc9e87c |
|
22-Oct-2009 |
Jesse Wilson <jessewilson@google.com> |
Expose hooks for more efficient log handling in Android apps. This change introduces a new interface, DalvikLogHandler. Log handlers that implement it opt-in to more efficient log handling for common-case log messages. The API requires far fewer objects to be allocated to log a message. A related change in frameworks/base adopts this optimization in the built-in AndroidHandler. This optimization resulted in a 2.75x improvement on my device: from 154ns to 56ns per message.
|