The minifier probably wrapped certain parts into functions that are lazily
compiled. Lazily compiled functions are not part of the snapshot.

Yang

On Wed, Dec 9, 2015, 14:00 Thiago Farina <tfar...@chromium.org> wrote:

> Moving this discussion to a more appropriate mailing list.
>
> On Wed, Dec 9, 2015 at 10:55 AM, singapati <s.singap...@gmail.com> wrote:
>
>> Hello
>>
>> I have a simple html page which loads a js file.
>>
>> *test1.js (2 MB)* and the same JavaScript with minified version *test1.min.js
>> (300 K). *I have observed following behaviour when looking into V8
>> compiled code disk caching functionality.
>>
>> For *test1.js*, V8 compiles and produces much byte code (~400KB) and
>> takes longer time (~300 milli seconds)
>>
>> For *test1.min.js*, V8 produces very less byte code (~4KB)
>>
>> I think in both the cases V8 engine should produce same code.
>> Any reasons why V8 does not perform similarly in both the cases? Could
>> there be any optimizations in inside V8?
>>
>> Thank You.
>> Sarath
>>
> --
>> --
>> Chromium Developers mailing list: chromium-...@chromium.org
>
>
>> View archives, change email options, or unsubscribe:
>>
> http://groups.google.com/a/chromium.org/group/chromium-dev
>>
>
>
>
> --
> Thiago Farina
>
> --
> --
> v8-dev mailing list
> v8-dev@googlegroups.com
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to