commit | 9cf36b7a77bb8e821f9e593fdbb200f8a1742ff0 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Wed Oct 10 17:17:58 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Wed Oct 10 21:46:55 2012 -0700 |
tree | e84975fdc589a0a9457265626dd5bea21afca2b8 | |
parent | 3c584f20ac8fe9378c094ad3b63936bca35954ba [diff] |
Don't process UEvents in Dalvik unless they match a pattern. On some devices, vsync is delivered from the kernel to userspace over a netlink socket via UEvent. The result is that a thread wakes up, reads a message, creates a new String then searches it for matches against a pattern on every single frame. Reduce the overhead by performing the initial pattern matching in native code. Bug: 7326329 Change-Id: Icb22db1c38330694207bec1153840e0c06f502d6