[typo] Typo's memory footprint

Piers Cawley pdcawley at bofh.org.uk
Tue Aug 1 12:40:04 EDT 2006

"Steve Longdo" <steve.longdo at gmail.com> writes:

> It is a funtion of the sidebar and textfilter controller where it
> dynamically loads all files in the directories into memory:
> Dir["#{RAILS_ROOT}/components/plugins/sidebars/[_a-z]*.rb"].each do |f|
>  require_dependency f
> end
> So it is cool because when new plugins are added they automagically load up,
> but unfortunate when, like Sparklines, they have a large overhead
> associated.
> As for knobs, you could have something that wrote a more specific regular
> expression for the load instead of just [_a-z]*.rb...

This is something that could be helped by the mooted move of sidebar
plugins to vendor/plugins. Essentially you'd only need to install
those sidebars you use.

Piers Cawley <pdcawley at bofh.org.uk>

More information about the Typo-list mailing list