Automattic / Automattic/node-canvas

Performance bottleneck caused by _registerFont function

Open
#2,014 18 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

![image](https://user-images.githubusercontent.com/37255986/160961055-8e5dc880-ef8e-4bdf-b71d-beb98fcde225.png)
hello,i meet a Performance bottleneck problem caused by the function _registerFont but i dont know why this function use too much cpu cost and i dont know why i invoked this function,because im sure im not use this function in my project,i just use loadImage createCanvas Image these three function,so i guess maybe these functions invoke _registerFont?am i right?please tell me

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported CPU usage around _registerFont while using loadImage, createCanvas, and Image. Trace whether those calls invoke _registerFont and identify the cause of the bottleneck; done means the invocation path and performance behavior are explained with a focused fix or follow-up.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, computer-graphics, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.