On Dec 11, 8:46 am, thorny_sun <[EMAIL PROTECTED]> wrote:
> so are you saying now that ruby source is somehow getting run faster
> since it is getting "compiled".  I'm very confused.  What if we take
> the builder template as an example (since prawnto template handler
> works very similarly in that it is just ruby code) -- is there any
> speed gain expected by "compiling" it?  Or did I just misunderstand?

In most cases, you going to have to compile it no matter what. In your
prawnto template handler you directly call [EMAIL PROTECTED]
source, template.filename, 1`. While this works, you are rebuilding
and reevaling the template ever run. This is really slow. You could
make this optimizations internally, but ActionView can take care of
all this for you if you just return the source from the handler
instead.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to