Skip to main content
Known Participant
September 17, 2009
Question

Quick Question for finding bottleneck

  • September 17, 2009
  • 1 reply
  • 525 views

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.

This topic has been closed for replies.

1 reply

Inspiring
September 17, 2009

<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