node-export-server icon indicating copy to clipboard operation
node-export-server copied to clipboard

Performance in exporting

Open timf-of opened this issue 2 years ago • 3 comments

We have done some tests with the latest build: https://github.com/highcharts/node-export-server/tree/enhancement/puppeteer.

In our initial tests the performance is insufficient for our goals. Average performance of exporting a chart is around 1 second. We tried running with more memory with no success.

We have an existing setup using JavaFX which takes about 300 ms for the same image.

Is there a way to boost performance?

timf-of avatar Feb 09 '23 13:02 timf-of

There is not. This repo is basically abandoned, and the code quality is very poor. We sank a lot of time into trying to get this junk heap to work at all without falling over constantly with no success. We ended up using browserless for our rendering, which is also a giant pain.

I wish Highcharts was built in a way that would allow for rendering svgs without a browser, but sadly it is not.

askdesigners avatar Mar 02 '23 13:03 askdesigners

@jakubSzuminski Any update on this?

Waterstraal avatar Jul 31 '23 11:07 Waterstraal

@timfaase we've recently merged a new PR (https://github.com/highcharts/node-export-server/pull/422) where we replaced the generic-pool package with tarn which, at least in our tests, improved the performance.

Could you please try out the latest version (from the stable branch or from the npm [email protected]) and let us know whether it works faster? Do you encounter any issues with this?

jszuminski avatar Oct 16 '23 09:10 jszuminski

Fixed in v4.0.0 (current master) by https://github.com/highcharts/node-export-server/pull/521.

jszuminski avatar Jul 25 '24 10:07 jszuminski