Tobie
Ruby 1.8.6 on Leopard. To be more precise, here are the figures from
my last doc build (74 seconds is the largest figure I've seen for the
generation phase since I've been running your optimizations):
Parsing completed in 11.807067 seconds.
Documentation generated in 74.335587 seconds.
> I'm willing to make everything work on all Ruby implementations.
> Parsing is slower on MRI 1.9 (from 30s to 50s), probably because of
> new encoding abstractions, and renderring simply blocks, apparently
> doing nothing.
Before memoization, I found Ruby 1.9 took _far_ longer to generate the
docs, but used only half as much memory. Would you care to look into
how much memory 1.9 uses during doc generation, as compared to 1.8.6?
I might try some other flavors (jRuby, macruby) for curiosity's sake.
> Replacing ERB by Erubis fixes it so I'm considering doing this change.
Lovely – this was another attempted optimization on my part, but I
didn't see much improvement, most likely because the bottleneck was
previously elsewhere. You might consider implementing it the way we've
done the Markdown library loading — we prefer RDiscount, but fall back
to BlueCloth. [1]
Cheers,
Andrew
[1] http://github.com/tobie/pdoc/blob/master/lib/pdoc/generators/html/bluecloth_extension.rb#L2
Parsing completed in 23.57 seconds.
Documentation generated in 29.974 seconds.
Brilliant.