how to check the performance of helpers.
For ex if am using content_tag for creating li instead of writing
how to check the performance of helpers.
For ex if am using content_tag for creating li instead of writing
You could probably set up a benchmark, but the more important question
is: WHY?
Worrying about something that probably takes a couple extra
microseconds isn’t
likely to yield any benefit, unless you’re rendering thousands of
elements.
…and if you’re doing that, you probably need to look into some
pagination, not the
performance implications of content_tag.
–Matt J.
On Feb 19, 5:46 am, Nike M. [email protected]
Matt J. wrote:
You could probably set up a benchmark, but the more important question
is: WHY?
Worrying about something that probably takes a couple extra
microseconds isn’t
likely to yield any benefit, unless you’re rendering thousands of
elements.…and if you’re doing that, you probably need to look into some
pagination, not the
performance implications of content_tag.–Matt J.
On Feb 19, 5:46�am, Nike M. [email protected]
Thanks
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs