# Code bogging down

**URL:** <https://forum.kirupa.com/t/code-bogging-down/177839>\
**Category:** Uncategorized\
**Created:** [February 5, 2006, 8:33pm UTC](https://forum.kirupa.com/t/code-bogging-down/177839 "2006-02-05T20:33:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![voidoid](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@voidoid](https://forum.kirupa.com/u/voidoid)\
**Post date:** [February 5, 2006, 8:33pm UTC](https://forum.kirupa.com/t/code-bogging-down/177839/1 "2006-02-05T20:33:41Z")

</div>

I have a class called codeCreator that creates a long string and stores it in its property codeCreator.outputString. Each time I need the string, I instantiate the class, copy outputString into an xmlNode, and then delete the object…

var q:codeCreator = new codeCreator();  
q.create();  
var node:XMLNode = new XMLNode(3,q.outputString);  
delete q;

but each time I do this, it runs a bit slower. Am I not cleaning up properly?? It runs like a charm the first time, then it’s downhill from there.
