Commit e76358e3f19 for nodejs

commit e76358e3f197b2e671740796068b4dc1477cad6c
Author: agape1225 <49804691+agape1225@users.noreply.github.com>
Date:   Sat Sep 26 03:49:51 2026 +0900

    src: reserve shared_array_buffers capacity in Message::Deserialize

    shared_array_buffers grows via repeated push_back() while iterating
    shared_array_buffers_, even though shared_array_buffers_.size() is
    already known before the loop starts and is an exact count of how
    many items will be pushed (one per iteration, unconditionally).
    This reserves capacity upfront to avoid the repeated allocate/copy/
    free cycle that happens each time capacity is exceeded, mirroring
    the existing array_buffers.reserve() in the sibling
    Message::Serialize().

    Signed-off-by: agape1225 <49804691+agape1225@users.noreply.github.com>
    PR-URL: https://github.com/nodejs/node/pull/65304
    Reviewed-By: James M Snell <jasnell@gmail.com>

diff --git a/src/node_messaging.cc b/src/node_messaging.cc
index 5a0c4962d3f..9a36415a8af 100644
--- a/src/node_messaging.cc
+++ b/src/node_messaging.cc
@@ -190,6 +190,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env,
   transferables_.clear();

   LocalVector<SharedArrayBuffer> shared_array_buffers(env->isolate());
+  shared_array_buffers.reserve(shared_array_buffers_.size());
   // Attach all transferred SharedArrayBuffers to their new Isolate.
   for (uint32_t i = 0; i < shared_array_buffers_.size(); ++i) {
     Local<SharedArrayBuffer> sab =