commit | 65dbe971b1bcefdaa353662f7bde5ea327544113 | [log] [tgz] |
---|---|---|
author | Jon McCaffrey <jmccaffrey@nvidia.com> | Tue Nov 18 12:07:08 2014 -0800 |
committer | Jon McCaffrey <jmccaffrey@nvidia.com> | Wed Nov 26 12:04:47 2014 -0800 |
tree | 9dfb56f5800bf0dbb87919cd84fa2da6e7b75ef9 | |
parent | fecc0bf4f1d8d1939807123d0f01ca1fe377bda4 [diff] |
InputDispatcher: Optimize count() Count items as they are added and removed rather than iterating over the entire list to count them. Increases performance slightly, particularly when tracing is turned on, which causes count to be queried more often, and when the number of items in the queues grow large. This can happen due to applications not responding, for example. Change-Id: I0f11f7edd46089612af910cdfabfeb3ee685d7d9