views:

38

answers:

1

Let's say I have

 Model.find(something)

and

variable.constantize.find(something)

what are the performance differences?

I mean, not having the extra step will obviously be faster, but under the hood, is there that much of a difference?

Refactoring 12+ methods from different controllers to one method with a constantize is AMAZING! but does it harshly impact the performance of my app?

A: 

The only way to know for sure is for you to profile your application both with and without the use of constantize and compare the results. Without profiling the performance, any answer anyone gives you here will be speculation and guesswork.

John Topley