Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: document import/extensions slowness#6318

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bradzacher merged 3 commits intomainfromdocs-import-extensions-slow
Jan 12, 2023

Conversation

bradzacher
Copy link
Member

This was a surprising result that I found at work today.
I found thatimport/extensions took ~30s for a total codebase run - which was 1/3 of the overall lint time!!!

I replaced it with the listedno-restricted-syntax config which in comparison runs in less than 1ms over the entire codebase, which is a YUGE win.

This hadn't been documented before because when I wrote this performance section I didn't realise that this lint rule could be slow.

I tried to clearly spell out the fact that the alternative has false positives and is not a 1:1 replacement. Now-a-days I've found that there's very few npm packages that still include.js in their name, and false-positives likefoo.js.ts should really not happen - so in practice it'll be 1:1, but still tried to make it clear there could be false positives.

@bradzacherbradzacher added the documentationDocumentation ("docs") that needs adding/updating labelJan 10, 2023
@nx-cloud
Copy link

nx-cloudbot commentedJan 10, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit6756ff3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 fromNxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedJan 10, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit6756ff3
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/63bf63f77c857300092432ee
😎 Deploy Previewhttps://deploy-preview-6318--typescript-eslint.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 yourNetlify site settings.

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesJan 10, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Fun! 🧠

1. to enforce file extensions are always used,
2. to enforce file extensions are never used.

##### Enforcing extensions are used

Choose a reason for hiding this comment

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

Note that the font size for#####s is pretty small:

Screenshot of headings with small sizes

Maybe a good time to bump that up a bit?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

How did you see this? Did you check it out locally?
When I tried the netlify deploy link above it doesn't include my changes :(

Choose a reason for hiding this comment

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

Oh I tried this withyarn start locally. Weird that the deploy doesn't have it.

@bradzacher
Copy link
MemberAuthor

@JoshuaKGoldberg - I just made the performance setion its own page entirely.
I think it's a meaty enough chunk that it deserves it.

JoshuaKGoldberg reacted with thumbs up emoji

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesJan 11, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment
edited
Loading

Choose a reason for hiding this comment

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

Agreed, this is a good move. Thanks!

I'll send a separate PR standardizing file names toUpper_Snake_Case.mdx.

Edit:#6325

That generally makes them run orders of magnitude slower.
Linters are designed to run in a parse, check, report, fix cycle. This means that there is a lot of intermediate work that needs to be done before a linter can fix a formatting issue with your code.

Additionally linters typically run each rule isolated from one another. This has several problems with it like:

Choose a reason for hiding this comment

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

Nit:

Suggested change
Additionally linters typically run each rule isolated from one another. This has several problems with itlike:
Additionally linters typically run each rule isolated from one another. This has several problems with itsuch as:

@bradzacherbradzacher merged commit722fd77 intomainJan 12, 2023
@bradzacherbradzacher deleted the docs-import-extensions-slow branchJanuary 12, 2023 03:56
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJan 22, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg left review comments

Assignees
No one assigned
Labels
documentationDocumentation ("docs") that needs adding/updating
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bradzacher@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp