> This is already available via the Java API. It's called aliasAllStrings.
>
> As the above link explains, it isn't generally useful. gzip can
> compress the common strings much better than we possibly can, because
> gzip is not limited to JS.
>
>
>
>
>
>
>
> On Mon, Feb 7, 2011 at 6:23 PM, cjavapro <
cjava...@gmail.com> wrote:
> > If a string shows up often then you can alias it
>
> > For example if someone uses jquery and the jquery externs file and you
> > use the advanced compile option then you may find frequent calls to $
> > ('body') or $('#someselector'). Those strings can be saved to one
> > letter variables which would shorten the code very much.
>
> > Granted you may want this to be an additional feature or custom switch
> > that is not on by default because of possible performance
> > implications.
>
> > Also see this which may want to be part of that same switch. Perhaps
> > call it WAY_ADVANCED_OPTIMIZATIONS.
..