Has anyone benchmark the use of helpers

At the moment I am taking code from my views and putting it into
helpers. Great for understanding and maintaining my views, but using
helpers for the same code must take longer to load.
Has anyone done any benchmark to see whether it takes microseconds or
milliseconds extra to load.

Sounds like you're in an ideal position to do so!

Fred

Unfortunately I have gone to far down the road of changing code to
helpers. Only one more to go.
I suppose I could always get an old copy and run it and see, but I am
sure others must have done it before.
It would take too much of my time at the mo.

Don Mapp wrote in post #970941:

Unfortunately I have gone to far down the road of changing code to
helpers. Only one more to go.
I suppose I could always get an old copy and run it and see, but I am
sure others must have done it before.
It would take too much of my time at the mo.

Wouldn't "Get an old copy..." just mean checkout out from version
control a copy before you made all these changes? You did commit before
you started restructuring things right? :slight_smile:

Don Mapp wrote in post #970929:

At the moment I am taking code from my views and putting it into
helpers. Great for understanding and maintaining my views, but using
helpers for the same code must take longer to load.
Has anyone done any benchmark to see whether it takes microseconds or
milliseconds extra to load.

Until it starts slowing down your application unacceptably, the matter
is only of academic interest.

Best,

It might be academic interest, but it is an interesting on, I feel.
Sometimes we accept things too willingly.
Others has said that cacheing
http://guides.rubyonrails.org/caching_with_rails.html
might be more important if speed is important.
I am looking into it.