Skip to content

mhevery/AngularConnect-2019

Repository files navigation

Angular Connect 2019

Slides for How we make Angular fast.

presentation video at AngularConnect 2019

install v8 to get d8

nvm install v12
nvm use v12
npm install -g jsvu
jsvu --engines=v8
ln -l ~/.jsvu/v8 ~/.jsvu/d8
export D8_PATH=~/.jsvu

to install, compile and serve the repository

npm install
npm run install-v8-tools
npm run watch
npm run serve

to get a list of d8 options

node --v8-options

example1.js

Demonstrates inlining.

node ./dist/example1.js 100000
node --v8-options | code -
node --trace-opt --trace-deopt ./dist/example1.js 10000000 | code -
./node_modules/.bin/deoptigate ./dist/example1.js 10000000

example2.js

Demonstrates stable numbers.

node ./dist/example2.js
./node_modules/.bin/deoptigate ./dist/example2.js

example3.js

Demonstrates inline-caching. ip-processor

node ./dist/example3.js
rm *.log; node --trace-ic ./dist/example3.js
./node_modules/.bin/deoptigate ./dist/example3.js

Demonstrates profiling. profview

rm *.log; node --prof --no-turbo-inlining ./dist/example3.js; node --prof-process *.log 
rm *.log v8.json; node --prof --log-source-code ./dist/example3.js; ./v8/tools/mac-tick-processor --preprocess *.log > v8.json

example4.html

Open example4.html

About

AngularConnect-2019

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published