Closed (fixed)
Project:
Drupal core
Version:
4.5.0
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2003 at 20:49 UTC
Updated:
27 Nov 2006 at 10:37 UTC
I was just working on some theme related functions, and I see that there are quite a few large text variables which are getting passed around to a few functions. Has anyone every considered passing more of the large text varaibles by reference to speed up drupal, and lower its memory usage?
The main problem is this, when you pass by reference there is a possibility that the original text may get changed. So there would have to be some sort of comment to say if a variable is modified at all.
Comments
Comment #1
jonbob commentedComment #2
bdragon commentedPHP doesn't actually copy strings until they are modified.
Comment #3
bdragon commented