In the common case, Entry IDs and indices are both contiguous and
start from 0, so these maps are just the identity function. ID->index
conversion is on the hot path for drawing Timeline and the
boxing/unboxing and map lookup can be relatively costly, so avoid it
when possible.
This pull request introduces 1 alert when merging 09ab39192af43e25410c606e92bc2c4f5b64f1b9 into 8ca8a8c55ebb1706269ea659a2735b31dabd2f2d - view on LGTM.com
In the common case, Entry IDs and indices are both contiguous and start from 0, so these maps are just the identity function. ID->index conversion is on the hot path for drawing Timeline and the boxing/unboxing and map lookup can be relatively costly, so avoid it when possible.