Sorry for the late reply, I was on leave. Snapshots are meant to be pre-computed, but just like the V8 binary itself, it is platform-dependent.
Cheers, Yang On Wed, Jun 21, 2017 at 6:21 PM <[email protected]> wrote: > Hm, but snapshots are meant to be pre-computed and distributed, right? > > > On Wednesday, June 21, 2017 at 5:59:15 PM UTC+2, Yang Guo wrote: > >> No. Both code cache and startup snapshot are platform-dependent. >> >> On Wed, Jun 21, 2017, 08:58 <[email protected]> wrote: >> >>> Thanks. Just to put this in perspective to cached-data. Warm snapshots >>> with compiled JS code can be distributed across different machines, >>> CPU-architecture and helps with the very first startup but cached data is >>> more efficient because it can use system specific tricks. Is that a >>> somewhat correct description of both? >>> >>> Cheers, Joh >>> >>> >>> On Wednesday, June 21, 2017 at 4:42:10 PM UTC+2, Yang Guo wrote: >>> >>>> mksnapshot does not by default include any code generated from >>>> JavaScript to save space. Please take a look at >>>> test/cctest/test-serialize.cc on examples on how to use WarmUpSnapshotBlob. >>>> You can also dive deeper and look at its implementation, which uses the >>>> more powerful SnapshotCreator. >>>> >>>> Cheers, >>>> >>>> Yang >>>> >>>> On Wed, Jun 21, 2017, 08:28 <[email protected]> wrote: >>>> >>> My understanding is that V8 puts generated and optimised code for my >>>>> functions onto the heap. Now, how does this relate to heap snapshots? Is >>>>> code generated by v8 part of snapshots and is the purpose of the >>>>> warmup-script in mksnapshot to run my function often enough to be hot and >>>>> optimised? Thanks in advance. >>>>> >>>>> -- >>>>> -- >>>>> v8-dev mailing list >>>>> >>>> [email protected] >>>> >>>> >>>>> 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 [email protected]. >>>> >>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>> -- >>> v8-dev mailing list >>> [email protected] >>> 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 [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > -- > v8-dev mailing list > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- * • * *Yang Guo** • **Google Germany GmbH* * • *Erika-Mann-Str. 33 * • *80636 Munich • [email protected] Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen Sie die E-Mail und alle Anhänge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks. -- -- v8-dev mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
