Skip to content

http: use v8::Array::New() with a prebuilt vector

Rodrigo Muino Tomonari requested to merge github/fork/joyeecheung/http-array into main

Avoid using v8::Array::Set() which results in JS execution and is thus slow. Prebuild the vector in C++ land and build the JS array directly with that vector whereever possible.

Merge request reports

Loading