poor performance - don't include unneeded code

moshe weitzman - May 1, 2006 - 05:32
Project:Markdown with SmartyPants
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:teradome
Status:closed
Description

we are including the markdown code on everry request, even though it is used on most pages. remember that drupal's does filter cache. see this change from textile module where it fixed the same problem - http://cvs.drupal.org/viewcvs/drupal/contributions/modules/textile/texti.... just require the files in the function(s) wher eyou need them.

#1

moshe weitzman - May 1, 2006 - 05:36
Title:poor perforance - don't include unneeded code» poor performance - don't include unneeded code

yikes - i meant textile module - http://cvs.drupal.org/viewcvs/drupal/contributions/modules/textile/texti...

#2

teradome - May 3, 2006 - 19:46

Good point, I can move the requires into the _process function.
Will check this in once my machine returns from repairs. :)

#3

teradome - May 3, 2006 - 19:46
Assigned to:Anonymous» teradome

#4

teradome - May 14, 2006 - 20:42
Status:active» fixed

Fixed in 4.7. Change has been committed and should appear in 4.7 package shortly.

#5

Anonymous - May 28, 2006 - 20:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.