[CONJS-229] performance issue when parsing lots of parameter Created: 2022-10-20  Updated: 2022-10-20  Resolved: 2022-10-20

Status: Closed
Project: MariaDB Connector/node.js
Component/s: performance
Affects Version/s: None
Fix Version/s: 3.1.0

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

after connectors benchmarks, mariadb node.js driver performs badly when parsing 1000 parameters.

This is globally an issue when using node.js Buffer.copy that is painly slow when copying small array (array of length 10 is 10 time slower than a basic array copy).



 Comments   
Comment by Diego Dupin [ 2022-10-20 ]

performance result after change :
do 1000 param benchmarks :
mysql2 : 2630 operations per second
mariadb before: 2266 operations per second
mariadb with correction : 3508 operations per second

Generated at Thu Feb 08 03:23:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.