commit | d20ab95d9aa808139ea36474640315ce8a2aa139 | [log] [tgz] |
---|---|---|
author | cushon <cushon@google.com> | Mon Oct 15 10:33:40 2018 -0700 |
committer | Liam Miller-Cushon <cushon@google.com> | Wed Oct 17 20:45:41 2018 -0700 |
tree | 08e2ac29a862a42f657c258c610fc2d9d0b7ffa5 | |
parent | 4f643a227ae5f8fde658eb274c988ca234a8e244 [diff] |
Avoid containsKey calls which showed up in a profile. In the containsKey/put case the extra map operation on the fast path has more performance overhead than unconditionally evaluating the value being inserted, since any expensive values are already being evaluated lazily with Suppliers.memoize. MOE_MIGRATED_REVID=217166646