Hi,
> Personally I would not worry too much about that neither. I would guess a
> decent Javascript parser / interupter / VM would keep a pool of string
> literals in the program and stores 20k pointers to "this" instead of
> allocating 20k "this" strings.
<doubtingThomas>
I can't believe that even a decent browser will cut a script
source string into pieces of pooled strings.
</doubtingThomas>
It's not about how a VM stores *compiled* JS in memory. It's only
about the memorized real source code. The only disadvantage of using a
"this" reference variable could be the additional scope look up
(assumed that "this" is not a auto-inserted scope variable)
> The answer to your question is no. There is nothing that can tell the
> compiler that.
What a pity!
Is it possible to switch off CC's disimprovement (replacing "that"
with "this", see 1st message)?
salute
Thomas