Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify setRowHeight #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

simplify setRowHeight #29

wants to merge 1 commit into from

Conversation

yocontra
Copy link

Removes a call to lodash.assign and a call to lodash.clone, which reduces the amount of CPU and memory used. It isn't a massive improvement, but something I noticed in the profiler while looking into optimizing other things in PDFKit.

On a simple 500 row PDF -

Before:
Screen Shot 2019-11-26 at 12 44 52 PM

After:
Screen Shot 2019-11-26 at 12 42 24 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant