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

add benchmarks for creating sourcemaps #32

Conversation

romainmenke
Copy link
Contributor

Sourcemap generation is not currently benchmarked but this is the slowest part of PostCSS.
Because it is a blindspot it is also harder to improve and to prevent regressions.

sourcemaps.js Outdated Show resolved Hide resolved
sourcemaps.js Outdated Show resolved Hide resolved
sourcemaps.js Outdated Show resolved Hide resolved
@@ -31,7 +31,7 @@ gulp.task('bootstrap', async () => {
})
})

for (let name of ['preprocessors', 'parsers', 'prefixers', 'tokenizers', 'linters']) {
for (let name of ['preprocessors', 'parsers', 'prefixers', 'tokenizers', 'linters', 'sourcemaps']) {
Copy link
Member

@ai ai Sep 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run Prettier (in VSCode or by installing it globally)?

We have an 80 columns limit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried with the VSCode extension and by installing globally but I couldn't get it to wrap these lines.

Is it possible that you have a global/default config for prettier?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have config in package.json.

Don’t worry, I will fix it after merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you 🙇

sourcemaps.js Outdated Show resolved Hide resolved
@ai ai merged commit d14edb0 into postcss:main Sep 18, 2023
1 check passed
@romainmenke romainmenke deleted the add-benchmarks-for-sourcemaps--diligent-sumatran-elephant-fde243eacb branch September 18, 2023 21:12
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.

2 participants