David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said almost 7 years ago on ViewComponent in Rails :
```In early benchmarks, we’ve seen performance improvements over the existing rendering pipeline. For a test page with nested renders 10 levels deep, we’re seeing around a 5x increase in speed over partials: Comparison: component: 6515.4 i/s partial: 1251.2 i/s - 5.21x slower ``` It is interesting, they're showing 5x difference in some cases. Perhaps one level deep, the difference would be small, but on 10 levels deep, that's a pretty significant change.

David Kimura PRO said almost 7 years ago on ViewComponent in Rails :
I would assume that it has less to do with erb processing and more to do with the modules that are getting loaded in with a normal partial being rendered. In the last example of the episode, we saw how we could add in other modules for stuff like url helpers. There are likely a lot more helpers being loaded in which would account for the extra time to render the partials.

David Kimura PRO said almost 7 years ago on Site Search on Mobile :
Thanks for the suggestion! It's there now!

David Kimura PRO said almost 7 years ago on Dynamic Select Fields :
In the example, it is `country_states_path` instead of `country_state_path`, could that be the issue?

David Kimura PRO said almost 7 years ago on Dynamic Select Fields :
If could be something weird like spring running. try `bin/spring stop`