1MB くらいのファイルを読み込む時 fs.promises.readFile だと fs.readFile より 40% くらい遅いという結果。 中で buffer concat してたり 一時的な配列作ったりする所が遅いのでは?という疑問も書いてある。

yosuke_furukawayosuke_furukawa のブックマーク 2021/03/04 10:20

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

fs.promises.readFile is 40% slower than fs.readFile · Issue #37583 · nodejs/node

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Re...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう