large string...
- From: "B.r.K.o.N.j.A" <thebrkonja@xxxxxxx>
- Date: Wed, 28 Jun 2006 18:00:49 +0200
example code
function myfunc1()
{
return myfunc2();
}
function myfunc2()
{
return myfunc3();
}
function myfunc3()
{
return very_large_string; // let's say that very large string is 30kb of data
}
print myfunc1();
The question is, would these 30Kb of data be copied into each function wasting resources or only reference to these data would be propagated to myfunc1? PHP version is 5.0.x
Best regards,
--
B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and Assasination
.
- Follow-Ups:
- Re: large string...
- From: Mladen Gogala
- Re: large string...
- From: Andy Hassall
- Re: large string...
- Prev by Date: php profiler
- Next by Date: Re: PHP email function
- Previous by thread: php profiler
- Next by thread: Re: large string...
- Index(es):