owenstrevor said almost 7 years ago on Benchmarking and Refactoring the content_for View Helper :

Any idea why deleting _breadcrumbs.html.erb and putting the yield code it into application.html.haml was slower?


David Kimura PRO said almost 7 years ago on Benchmarking and Refactoring the content_for View Helper :

Since the difference was so minimal, it was probably something to do with the host environment. If it were X times slower, it would be a bit strange and cause for alarm, but I could have had a number of things running on the mac which created the slight differences.


owenstrevor said almost 7 years ago on Benchmarking and Refactoring the content_for View Helper :

Interesting, can the same approach you share in this video be used in production?


David Kimura PRO said almost 7 years ago on Benchmarking and Refactoring the content_for View Helper :

Yes. I've used similar things from this episode on some projects. My breadcrumbs were a bit different so the markup changed a bit, but the overall concept is the same. I've used similar approaches on SEO data as well (page titles and descriptions).


Login to Comment