Closed (fixed)
Project:
Textile
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2005 at 18:20 UTC
Updated:
14 Dec 2005 at 03:21 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | DrupalTextile.php | 1.03 KB | drumm |
| #1 | textile.module.diff | 1.98 KB | drumm |
Comments
Comment #1
drummHere is a patch against the 4.6 version since textile does not run on HEAD yet.
Comment #2
drummAnd the new file to be added.
Comment #3
ankur commented+1
Comment #4
gtcaz commentedGood concept. FYI, I'm running Textile (along with SpartyPants) in HEAD without an trouble so-far.
Comment #5
jhriggs commentedA 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!
Comment #6
(not verified) commented