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

perf: improve list tags performances #57

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

Conversation

madeindjs
Copy link
Contributor

using reduce to create a new array at each loop consume more memory than reusing the same array.

So I just avoid it on List.context, List.projects and List.extensions to improve that. It's a micro-optimisation, but I think it can make a noticable difference on big files like done.txt

I also added some tests.

Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for jstodotxt ready!

Name Link
🔨 Latest commit d90f01b
🔍 Latest deploy log https://app.netlify.com/sites/jstodotxt/deploys/6630122216fcd90008f86b6a
😎 Deploy Preview https://deploy-preview-57--jstodotxt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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