Taco

Simmer down buddy

Its an example.  He wasnt saying you WERE.  It was just an example

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Taco Fleur
Sent: Tuesday, March 09, 2004 3:53 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Variables > To destroy or not to destroy?


How in godsname do you know I'm working with an RSS feed?

Correct me if I am wrong (maybe I just don't get it) but all scopes are
structures, correct?
Thus VARIABLES is a structure, whether the function is called structDELETE
and whether it just removes the element from the structure, the end result
is that the variable is destroyed.

I guess I sort of figured that it would not make a hell of a lot of
difference in normal applications, but I guess it could make a difference if
your talking about a heavily visited app, it might speed things up, I think
it will anyway..
But....... I could be wrong...

Taco Fleur
07 3535 5072
Blog: http://www.tacofleur.com/index/blog/
Methodology: http://www.tacofleur.com/index/methodology/
Tell me and I will forget
Show me and I will remember
Teach me and I will learn


-----Original Message-----
From: Mark Stanton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 9 March 2004 2:40 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Variables > To destroy or not to destroy?


Maybe getting pedantic here but, from the manual:

structDelete = Removes an element from a structure

The variable (or structure) itself is still there, you've just knocked a
branch off it. So does this reduce the memory being used? I don't know -
probably does, unless its making a copy & returning a pointer to the copy.

So if you parsed an RSS feed into session.myRSS and then when you'd finished
with it you <cfset request.myRSS = 0> or <cfset structDelete(request,
"myRSS")> I'd say you're probably going to be using less memory but I still
don't think its worth doing in 99% of cases.



Cheers

Mark


------------------
Mark Stanton
Technical Director
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to