pmarcinkiew / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
0 stars 1 forks source link

Improve HTTPS module curl write callback (#1311) #136

Closed pmarcinkiew closed 6 years ago

pmarcinkiew commented 6 years ago

When the curl called the write callback the data was copied into a JerryScript array by index (iotjs_jval_create_byte_array) which can be inefficient for big data.

By switching to an IoT.JS interal buffer we can speed up the callback operation.

IoT.js-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com