After running some profiling on my Drupal site, it has come to my attention that pagestyle.module is one of the largest files parsed by include_once. Infact, it is at the top of the list, taking 6084microseconds to process. Below is the top section of the output from webgrind on drupal_load() - as you can see, include_once(...pagestyle.module) is the at the top!:

include_once::/home/tom/workspace/concern6/sites/all/modules/pagestyle/pagestyle.module @ 601 	1 	6084 	O
drupal_get_filename @ 598 	138 	2729 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/location/location.module @ 601 	1 	1844 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/textsize/textsize.module @ 601 	1 	1523 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/imageapi/imageapi_gd.module @ 601 	1 	1100 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/filefield/filefield.module @ 601 	1 	741 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/print/print.module @ 601 	1 	402 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/chart/chart.module @ 601 	1 	357 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/forward/forward.module @ 601 	1 	319 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/imagecache_actions/imagecache_canvasactions.module @ 601 	1 	293 	O
include_once::/home/tom/workspace/concern6/modules/comment/comment.module @ 601 	1 	279 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/simplenews/simplenews.module @ 601 	1 	237 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/date/date_api.module @ 601 	1 	226 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/submenutree/submenutree.module @ 601 	1 	210 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/devel/devel.module @ 601 	1 	144 	O
include_once::/home/tom/workspace/concern6/sites/all/modules/flashvideo/flashvideo.module @ 601 	1 	126

I suspect that splitting pagestyle.module into smaller files (pagestyle.admin.inc etc) will shave the processing time down to a reasonable level.

Comments

CZ’s picture

Status: Active » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.