Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node8.3.0について
Search
Yuta Hiroto
August 04, 2017
Programming
1
3.1k
Node8.3.0について
buildersconの飛び込みLT資料。
以下の記事のスライド版です。
http://abouthiroppy.hatenablog.jp/entry/2017/08/03/095304
Yuta Hiroto
August 04, 2017
Tweet
Share
More Decks by Yuta Hiroto
See All by Yuta Hiroto
ECMAScript
abouthiroppy
0
570
reflow/repaint
abouthiroppy
0
130
my tools
abouthiroppy
0
89
OSSを楽しむ話
abouthiroppy
0
110
React Nativeを触ってみた話
abouthiroppy
0
89
Other Decks in Programming
See All in Programming
為你自己學 Python
eddie
0
540
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
360
Запуск 1С:УХ в крупном энтерпрайзе: мечта и реальность ПМа
lamodatech
0
990
ASP.NET Core の OpenAPIサポート
h455h1
0
160
Spring gRPC について / About Spring gRPC
mackey0225
0
170
SpringBoot3.4の構造化ログ #kanjava
irof
2
770
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
140
2025.01.17_Sansan × DMM.swift
riofujimon
2
670
時計仕掛けのCompose
mkeeda
1
190
Amazon Bedrock Multi Agentsを試してきた
tm2
1
220
ATDDで素早く安定した デリバリを実現しよう!
tonnsama
1
2.4k
asdf-ecspresso作って 友達が増えた話 / Fujiwara Tech Conference 2025
koluku
0
1.6k
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
171
14k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Into the Great Unknown - MozCon
thekraken
34
1.6k
Statistics for Hackers
jakevdp
797
220k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.5k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
20
2.4k
A Tale of Four Properties
chriscoyier
157
23k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Transcript
Node8.3.0ʹ͍ͭͯ Yuta Hiroto(@about_hiroppy) ඈͼࠐΈLT(5min)
Me Twitter: about_hiroppy GitHub: abouthiroppy ኍށ ༟େ
ݱࡏͷNodeͷঢ়گ • current(master) - v9.0.0-pre • latest - v8.2.1 •
Current Proposal - v8.3.0 • LTS(Long Term Support) • Boron - v4.8.4 (status: Maintenance) • Argon - v6.11.2 (status: Active) • Carbon - v8.x (status: Pending(2017/10 ~))
v8.3.0 proposalͷେ͖ͳมߋ • V8ͷv6.0ΞοϓάϨʔυ • ͜ΕʹΑΓɺύϑΥʔϚϯεϓϩϑΝΠϧ ͕େ෯ʹมߋ͞ΕΔ • WHATWG Encoding
Standard (TextDecoderͱTextEncoder)͕࣮͞Εͨ https://github.com/nodejs/node/pull/14594
v8.3.0 proposalͷେ͖ͳมߋ • V8ͷv6.0ΞοϓάϨʔυ • ͜ΕʹΑΓɺύϑΥʔϚϯεϓϩϑΝΠϧ ͕େ෯ʹมߋ͞ΕΔ • WHATWG Encoding
Standard (TextDecoderͱTextEncoder)͕࣮͞Εͨ https://github.com/nodejs/node/pull/14594
TurboFan + Ignition ͕σϑΥϧτͱͳΔʂ
NodeͱV8 • V8ͷv5.9͔ΒσϑΥϧτͱͳΔ TurboFanͱIgnitionͱ͍͏ͷ͕͋Γ·͢ • NodeͰॳΊͯσϑΥϧτʹͳΔͷ͕ ࠓճͷมߋͱͳΓ·͢ • v5.9NodeͷϦϦʔεϥΠϯʹೖ͓ͬͯΒͣɺ v6.0͔ΒೖΔ͔ΒͰ͢
TurboFan + Ignition • TurboFan • JIT CompilerͰCrankshaft͔Βஔ͖ΘΔͷͰ͢ • ES2015Ͱͷ࠷దԽࠔͳ෦try-catchͷ࠷దԽͳͲ͕ՄೳͱͳΓ·͢
• chrome 41͔Βஈ֊తʹ༻͞Εͯ·ͨ͠ • Ignition • Register machine • ϞόΠϧͷϝϞϦফඅݮΛඪͱͯ͠࡞ΒΕͨΠϯλϓϦλ • JSͷίʔυΛbytecodeʹ͠·͢
V8ͷ࣮ߦϑϩʔ https://docs.google.com/presentation/d/1OqjVqRhtwlKeKfvMdX6HaCIu9wpZsrzqpIVIwQSuiXQ/edit#slide=id.g1357e6d1a4_0_58
ϕϯνϚʔΫ
Node Core • Internal Modules(V8 v5.9) • buffers events http
() querystring streams string_decoder url util v5.9ͰओʹࠨͷϞδϡʔϧͷ ϕϯνϚʔΫ͕v5.8 ΑΓԼ͕ͬͯ͠·ͬͨ ͔͠͠ɺv6.0/6.1ͰTurboFan ͷଟ͘ͷ͕վળ͞ΕͨͷͰ ࠓޙͬͱྑ͘ͳΔ
node benchmark.js 390.80s cpu 8:16.27 total webpack v8.2.1 (V8
v5.8) v8.3.0 (V8 v6.0) node benchmark.js 385.03s cpu 7:47.66 total
Loading: Load Performance median: 147.627503ms Single File: CPU Speed is
3100 with multiplier 13000000 Performance budget exceeded: 5423.646407ms (limit: 4193.548387096775ms) Multi Files (0 files): CPU Speed is 3100 with multiplier 39000000 Performance budget exceeded: 13073.789987ms (limit: 12580.645161290322ms) ESLint Loading: Load Performance median: 141.143209ms Single File: CPU Speed is 3100 with multiplier 13000000 Performance budget exceeded: 5300.968599ms (limit: 4193.548387096775ms) Multi Files (0 files): CPU Speed is 3100 with multiplier 39000000 Performance budget exceeded:13120.178363ms (limit: 12580.645161290322ms) v8.2.1 (V8 v5.8) v8.3.0 (V8 v6.0)
ϕϯνϚʔΫʹؔͯ͠ • جຊతʹվળ͞Ε͍ͯΔ(v8.2.1͔Βv8.3.0) • NodeͷInternal modulesͰ 100%Ҏ্ͷվળ͋ΕɺѱԽ͋Δ
·ͱΊ • 8݄தʹ8.3.0͕ϦϦʔε͞Ε·͢ • NodeͷV8͕v6.0ΞοϓάϨʔυ͞ΕΔ 5.8 → 6.0 • WHATWG
Encoding Standard͕ೖΔ • ࠓޙɺNode, Chromeߋʹ͘ͳΔ
͜ͷLTͷهࣄ Node8.3.0ͰσϑΥϧτʹͳΔTF/IʹؔΘΔ ϕϯνϚʔΫʹ͍ͭͯ http://abouthiroppy.hatenablog.jp/entry/2017/08/03/095304
౦ژNodeֶԂࡇ2017 CFPͷక͕8݄ͷ15ͳͷͰ ൃද͍ͨ͠ํͥͻԠื͍ͯͩ͘͠͞ʂʂʂ
Thanks!