Copy link to clipboard
Copied
I created a web page that is looping through a bunch of lists and arrays. Its sort of a hack project so I didn't spend too much time in designing it well. Performance, however, is now really becoming an issue. I was wondering if any of you had any quick tips for testing how long a specific portion of the page is taking to process so that I can determine where I need to improve performance.
Thanks in advance.
Copy link to clipboard
Copied
<cftimer> is probably a good place to start:
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_t_06.html#2765717
There's also getTickCount() which can be handy:
http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_e-g_64.html#1105415
Just as a pre-emptive warning before seeing what you're doing: lists are not a very good data structure for high-performance code. Avoid if poss.
If it's not a great swathe of the stuff, perhaps post the code that's not performing well.
--
Adam