#2477: V3: Packager
--------------------------+-------------------------------------------------
  Reporter:  fredck       |       Owner:  fredck                        
      Type:  New Feature  |      Status:  assigned                      
  Priority:  Normal       |   Milestone:  CKEditor 3.0                  
 Component:  General      |     Version:                                
Resolution:               |    Keywords:  Confirmed V3ProtoOther Review?
--------------------------+-------------------------------------------------

Comment(by fredck):

 I've just introduced the PACKAGER_RENAME feature with [2371], as well as
 the "wrap" option.

 When "wrap" is set, the entire code is placed inside a (function(){...})()
 call, isolating it from the global scope, creating a new scope space for
 variable renaming.

 The PACKAGER_RENAME thing instead makes it possible to declare in the
 code, references that can be renamed by the packager. For example, the
 CKEDITOR and CKEDITOR.tools references have been marked for rename, so all
 references to them are changed to a short variable name. No one now can
 blame on us because we are using namespaces.

 The final results:

  * ckeditor_basic.js: 5,451 bytes (16% of original)
  * ckeditor.js......: 41,176 bytes (19% of original)
  * total time.......: 3.187 seconds.

 As we can see, the name replacement lookup impacted in the execution time
 a bit, but it is definitely compensated by the rest.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2477#comment:3>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to