All Posts
News bits
V8 v13.8でJSON.stringifyが2倍以上高速化
V8 v13.8でJSON.stringifyが2倍以上高速化
V8 v13.8でJSON.stringifyが2倍以上高速化。副作用のない単純なオブジェクトのシリアライズに特化した新しい反復的アプローチを実装し、パフォーマンスを大幅に改善。
- 新しいシリアライザ:
toJSONメソッドやreplacer引数がない単純なオブジェクトを処理する「ファストパス」を導入。再帰的実装を反復的アプローチに変更し、スタックオーバーフローを防止。 - 文字列処理の最適化: SIMD命令やSWAR技術を利用し、文字列内のエスケープ文字検索を高速化。
- プロパティキーの最適化: 特定の条件を満たすプロパティキーを持つオブジェクトの隠しクラスにフラグを設定。次回以降のシリアライズ時にキーのチェックを省略する「エクスプレスレーン」を導入。
- 数値変換の改善: 数値から文字列への変換アルゴリズムをDragonboxに更新。
- メモリ管理の改善: 一時バッファをセグメント化し、メモリの再割り当てとコピーのオーバーヘッドを削減。
Rusty V8
Rusty V8
Deno が内部で使っている V8 の Rust バインディングライブラリを公開した。
著者について
Hi there. I'm hrdtbs, a frontend expert and technical consultant. I started my career in the creative industry over 13 years ago, learning on the job as a 3DCG modeler and game engineer in the indie scene.
In 2015 I began working as a freelance web designer and engineer. I handled everything from design and development to operation and advertising, delivering comprehensive solutions for various clients.
In 2016 I joined Wemotion as CTO, where I built the engineering team from the ground up and led the development of core web and mobile applications for three years.
In 2019 I joined matsuri technologies as a Frontend Expert, and in 2020 I also began serving as a technical manager supporting streamers and content creators.
I'm so grateful to be working in this field, doing something that brings me so much joy. Thanks for stopping by.