The Flash Mobile Show


trace statements and “omit trace statements”

July 8th, 2005 by Scott Janousek
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

1. I seem to recall that -not- omitting tracements can have a slight performance hit when running within the flash player (having hundreds to thousands of traces) … can anyone confirm or deny this??

If it does impact the player, how big of deal is it? I’m sure we all sometimes forget to omit trace statements before a final deploy and I’m curious to know what the impact is, if any at all.

I usually stick to using a custom trace that can be toggled (or a custom log class if it’s an AS 2 project) … however, sometimes I throw in trace statements for quick debugging purposes …

2. If #1 is true, for the flashlite team … does this have a noticable effect in the FL player??

Print This Post Print This Post

Current Visitors


3 Responses to “trace statements and “omit trace statements””

  1. maliboo Says:

    Problably webplayer (or SAplayer -not-debug-version-) doesn’t support “trace” function, BUT, there is such call in bytecode, so “trace()” statement must be performed (even if this nonexistent function).

  2. scottjanousek Says:

    Just curious … and more so for the Flash Lite player since that’s where performance might be effected (lower processor power/memory, etc) …

    Again we’re probably talking hundreds of trace statements before
    it starts to have an impact, but still … maybe I’ll whip up a quick test …

  3. dave Says:

    probably trace() has less of a performance effect than any custom logging code you may have.

Leave a Reply



Readers who viewed this page, also viewed:

  • N/A
Entries (RSS) and Comments (RSS).

© Copyright 1995-2006 scottjanousek.com. All Rights Reserved.
Graphics & Design by Scott Janousek. (Some) icons by Kevin Potts.