You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling ToLookup multiple times as data changes is wistful in terms of memory and cycles
Maintaining 2 data structures with the needed mapping violates the single source of truth and can case subtle bugs
So is it possible to give the Lookup and Update or Pull method which updates the lookup from initial data structures changes much more efficiently.
Though not something I want immediately, this can be applied to the other To* data structures too. This will need some additional API plumbing, but as I see it Lookup case could be easy.
Maybe you can have .ToUpdatable* which can return updatable data structures.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The problem I am having is that:
So is it possible to give the
Lookup
andUpdate
orPull
method which updates the lookup from initial data structures changes much more efficiently.Though not something I want immediately, this can be applied to the other
To*
data structures too. This will need some additional API plumbing, but as I see it Lookup case could be easy.Maybe you can have
.ToUpdatable*
which can return updatable data structures.Beta Was this translation helpful? Give feedback.
All reactions