commit | d55baf06d96aff0b67979419c37ac3ebdc44768c | [log] [tgz] |
---|---|---|
author | Jean Chalard <jchalard@google.com> | Mon Jun 03 18:42:55 2013 +0900 |
committer | Jean Chalard <jchalard@google.com> | Tue Jun 18 20:33:52 2013 +0900 |
tree | 705bf853b8eecfd80e2d90cd25d2e88eecee558c | |
parent | 27d9c6f795a0856c401b3d4189f60be71bac0e98 [diff] |
Optimize ProximityInfo#computeNearestNeighbors() This cuts the time spent in computeNearestNeigbors by a factor of 6 to 20, with an average at about 8. This method representing about 25% of the total time spent when switching keyboards, this change is a 20% improvement in layout switching time. Bug: 8689779 Change-Id: Icb465f6010b317c7156057891c3341e51a198688