]> gerrit.simantics Code Review - simantics/platform.git/commit
Add ComponentBase.componentId -> ComponentBase cache map in MappingBase
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 4 May 2021 07:45:32 +0000 (10:45 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 4 May 2021 07:45:32 +0000 (10:45 +0300)
commit7654cd8a5a5676eccb5cc9e0e3daadd5beea8537
tree015ad04fe011425c76923857383a93e780de5479
parent7018c62d56cf7ac26973d40b01027c2c050cc4d1
Add ComponentBase.componentId -> ComponentBase cache map in MappingBase

This map is built at the same time as the previously existing
`Map<String, T> configurationBySolverName` with the purpose of allowing
implementations to avoid performing solver-side int -> String lookups in
cases where pure model mapping structure lookup zero GC behavior and
speed is essential.

gitlab #713
bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/MappingBase.java