The PDF file created by createPDFStream becomes larger in size, and createWriteStream is very slow

Open
#2,615 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
javascript, node.js

Research direction

Start by reproducing the reported behavior through createPDFStream and createWriteStream on node-canvas 4.0.0-rc3 with Node v20.19.0 on Linux, using many text-to-PDF conversions. Compare PDF size and write speed, then identify the regression and add coverage for the corrected behavior; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

Bug performance
Version of node-canvas

4.0.0-rc3

Version of node

v20.19.0

What operating system does the problem occur on?

Linux

Steps to reproduce

Create a large number of text-to-PDF conversions to achieve the desired result.

Additional information/comments

No response

Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/node-canvas

All issues in Automattic/node-canvas

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.