The majority of CPU time in CPP (18.8%) when using node-libzim seems to be calls to v8::internal::Builtin_HandleApiCall.
I'm not sure how much it would improve the performance, but we could try creating an addArticles method in CPP and automatically batch the adding on the JS side.
This would keep the same simple API, but potentially improve performance
The majority of CPU time in CPP (18.8%) when using node-libzim seems to be calls to
v8::internal::Builtin_HandleApiCall.I'm not sure how much it would improve the performance, but we could try creating an
addArticlesmethod in CPP and automatically batch the adding on the JS side.This would keep the same simple API, but potentially improve performance