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
arbus
changed the title
Benchmark elm on the effects on all of a Model or just the fields that on needed
Benchmark elm - Pass all of a Model of just sub-parts of it
Feb 28, 2019
The view function of a given page is usually made up of multiple sub-view functions which only operate on a small part of the Model of the page.
The aim is to benchmark what the performance implications are for passing all of a model or just the fields that are necessary to these sub-view functions
I think there won't be huge performance difference between the two approaches. Elm compiles to JS and in JavaScript, and even though it uses call by value semantics, objects are references. Based on that I think it doesn't really matter if large or small record is being passed. I believe run-time is always copying just a reference to object which should be of same size in both cases.
No description provided.
The text was updated successfully, but these errors were encountered: