[Improvement] Remove needless id lookup #432
Labels
good first issue
Indicates a good issue for first-time contributors
improvement
Improvement on internal implementation
In #427 , the inverse update was implemented as an improved way to restore components after a batch update. The current implementation queries the id to sequence idx map once for each update step, and therefore once for the regular update, and once for the inverse update. That query is expensive.
The unneeded query may be removed by also caching the sequence idx in addition to the inverse update data.
The text was updated successfully, but these errors were encountered: