Skip to content

[Merged by Bors] - perf(Linter/Whitespace): revert #26240#34645

Closed
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:revert-26240
Closed

[Merged by Bors] - perf(Linter/Whitespace): revert #26240#34645
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:revert-26240

Conversation

@grunweg
Copy link
Contributor

@grunweg grunweg commented Jan 31, 2026

This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with #30658 anyway.


Open in Gitpod

This causes significant regressions to code with many violations, see e.g.
https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a
regression, as this could go through the string linearly. Let us revert this
change instead; it is not forward-compatible with leanprover-community#30658 anyway.
@github-actions github-actions bot added the t-linter Linter label Jan 31, 2026
@github-actions
Copy link

PR summary fbc09fe073

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@joneugster
Copy link
Contributor

Thanks for the revert.

maintainer merge

@joneugster joneugster self-assigned this Jan 31, 2026
@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by joneugster.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 31, 2026
@bryangingechen
Copy link
Contributor

Thanks!
bors r+

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jan 31, 2026
mathlib-bors bot pushed a commit that referenced this pull request Jan 31, 2026
This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with #30658 anyway.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 31, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title perf(Linter/Whitespace): revert #26240 [Merged by Bors] - perf(Linter/Whitespace): revert #26240 Jan 31, 2026
@mathlib-bors mathlib-bors bot closed this Jan 31, 2026
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
…r-community#34645)

This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with leanprover-community#30658 anyway.
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Feb 15, 2026
…r-community#34645)

This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with leanprover-community#30658 anyway.
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…r-community#34645)

This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with leanprover-community#30658 anyway.
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
…r-community#34645)

This causes significant regressions to code with many violations, see e.g. https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/.60linear_combination.60.20performance.20regression.20in.20v4.2E28.2E0-rc1.

Going from srcNat := ls.length to srcNat := ls.positions.count causes a regression, as this could go through the string linearly. Let us revert this change instead; it is not forward-compatible with leanprover-community#30658 anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants