Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts

Tuesday, March 3, 2015

Improving V8's performance using the serializer/deserializer

V8 has long been using so-called snapshots to improve start-up time. By capturing a snapshot of a fresh V8 instance, initializing Javascript globals no longer require executing native scripts where they are defined, but simply deserializing the snapshot. A d8 shell built with snapshot starts within 15ms as opposed to 55ms without.

A minor sometimes overlooked detail is that the snapshot not only speeds up creating a V8 isolate via v8::Isolate::New, but also contexts created via v8::Context::New, as the snapshot is used as a template.

Recently, the serializer and deserializer implementing the start-up snapshot have been improved to support new features. In the following I want to give a brief introduction to two new embedder-facing APIs that - if used correctly - can improve performance significantly.

Tuesday, August 26, 2014

Online books

The other day, while googling for a quote from George R. R. Martin's "A Song of Ice and Fire", I came across this site that simply hosts all the books in the series released up to date. While I'm quite certain that this violates copyright law, it sure is convenient, even though I own a paper copy of those books.
The site is hosted in Phoenix, Arizona. I wonder how long it will stay up until taken down.