0 Replies Latest reply on Aug 15, 2008 6:38 AM by (Paul_Reilly)

    [svn] 2850: Modified encoding to use BEST_SPEED, instead of BEST_COMPRESSION, when

    Level 1
      Revision: 2850
      Author: preilly@adobe.com
      Date: 2008-08-15 07:38:34 -0700 (Fri, 15 Aug 2008)

      Log Message:
      -----------
      Modified encoding to use BEST_SPEED, instead of BEST_COMPRESSION, when
      generating debug SWF's. During active development, Flex Builder
      creates debug SWF's, so this should speed up incremental compilation
      about 10%.

      tests Passed: checkintests

      Needs QA: YES

      Needs DOC: NO

      API Change: NO

      Reviewer: pfarland

      Code-level description of changes:

      TagEncoder.java

      Modified writeTo() to pass isDebug() as the second arg into
      SwfEncoder.writeTo().

      SwfEncoder.java

      Added compress(boolean) and writeTo(OutputStream, boolean), so
      that BEST_SPEED can be used when the arg is true. The existing
      API's compress() and writeTo(OutputStream) default to
      BEST_COMPRESSION to maintain the previous behavior.

      Also added deflate() and moved common code from compress() and
      writeTo() into this new method.

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/swfutils/src/java/flash/swf/SwfEncoder.java
      flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagEncoder.java