native module の code cache の worker thread 対応について
はじめに
Node.js Advent Calender 2018の 23 日目のエントリーです
native module の code cache の worker thread 対応とは
Landed a PR on Node.js master to share the code cache of builtin modules & bootstrappers compiled among the main thread & worker threads https://t.co/UVl9HqH5s9 so launching workers can be ~2x faster than launching child processes (thanks @addaleax for the review!)
— Joyee Cheung (@JoyeeCheung) December 18, 2018
先日も東京 Node 学園祭に来てくださった Joyee さんの PR でこれにより worker thread が child process を使うより 2 倍早くなるそうです
おわりに
取り急ぎ書いたので明日以降ちょっと更新するかもしれません