Skip to content

add benchmarks for creating sourcemaps#32

Merged
ai merged 3 commits intopostcss:mainfrom
romainmenke:add-benchmarks-for-sourcemaps--diligent-sumatran-elephant-fde243eacb
Sep 18, 2023
Merged

add benchmarks for creating sourcemaps#32
ai merged 3 commits intopostcss:mainfrom
romainmenke:add-benchmarks-for-sourcemaps--diligent-sumatran-elephant-fde243eacb

Conversation

@romainmenke
Copy link
Copy Markdown
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.

Comment thread sourcemaps.js Outdated
Comment thread sourcemaps.js Outdated
Comment thread sourcemaps.js Outdated
Comment thread gulpfile.js
})

for (let name of ['preprocessors', 'parsers', 'prefixers', 'tokenizers', 'linters']) {
for (let name of ['preprocessors', 'parsers', 'prefixers', 'tokenizers', 'linters', 'sourcemaps']) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thank you 🙇

Comment thread sourcemaps.js Outdated
@ai ai merged commit d14edb0 into postcss:main Sep 18, 2023
@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