Hi umuro,

Dryml profiling is not an easy task: I tried using a profiler but I was
not successful. What I ended up doing was starting with a blank page
with just "Hello world" in it. And then restore the rest of the content
little by little. Some basic timing like this might help:

date1 = Time.now.to_f
date2 = Time.now.to_f
difference_in_ms = (date2 - date1)*1000

The elements that will mostly waste a lot of time will be tables and
lists, specially if they have buttons and links. Sometimes several
permission checks can be done for each row in a table.

One thing that can probably help a lot with Dryml performance is partial
caching. For example, in one application I cached the whole menu, and
saved around 30ms per request. You could also cache "rows" of a table,
and use "updated_at.to_i" as the cache key.

This tutorial by Bryan Larsen is quite useful:
http://hobocentral.net/tutorials/caching

Warm regards,
Ignacio

El 28-08-2015 a las 08:32, umuro escribió:
> Recently I was observing where I am loosing my sites performance. For a
> show page, I saw those numbers
> 
>   * DRYML 110 ms
>   * Controller 47 ms
>   * Record.find 9 ms
>   * User.find 5 ms
> 
> This is how time is spent in serving that very page.
> 
> It's clear that I need to optimize my controller. However, the time loss
> in DRYML is huge!
> 
> And this is not because of DRYML. Because of me. However, by simply
> reading the DRYML page I am not able to where the performance is lost in
> the page.
> 
> My question is this: *Can I use a ruby call profiler to discover which
> DRYML tags are eating the CPU?  *
> 
> Do you have any suggestions?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to