Mike Gifford did some memory profiling of Drupal including the Textile module and found that Textile took up 625 Kb of RAM which exceeds the largest Drupal core module's (user) usage which is 486 Kb.

Textile's memory usage can easily be reduced because the textilephp/Textile.php file is loaded on every page view when is is only used when textile-formatted content is processed. It appears that the DrupalTextile class could be moved to a separate file which includes textilephp/Textile.php. The DrupalTextile file could be included in the _textile_process() function.

CommentFileSizeAuthor
#2 DrupalTextile.php1.03 KBdrumm
#1 textile.module.diff1.98 KBdrumm

Comments

drumm’s picture

Status: Active » Needs review
StatusFileSize
new1.98 KB

Here is a patch against the 4.6 version since textile does not run on HEAD yet.

drumm’s picture

StatusFileSize
new1.03 KB

And the new file to be added.

ankur’s picture

+1

gtcaz’s picture

Good concept. FYI, I'm running Textile (along with SpartyPants) in HEAD without an trouble so-far.

jhriggs’s picture

Status: Needs review » Fixed

A slightly modified version of this patch has been applied to v4.7r1/2005112900. I don't intend to go back and update 4.6 unless there is an outcry for it.

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)