• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Quick Question for finding bottleneck

New Here ,
Sep 16, 2009 Sep 16, 2009

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.

TOPICS
Advanced techniques

Views

495

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 17, 2009 Sep 17, 2009

Copy link to clipboard

Copied

LATEST

<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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation