Skip to content

Comments

refactor(semantic): Stats::assert_accurate take self#5758

Merged
graphite-app[bot] merged 1 commit intomainfrom
09-13-refactor_semantic_stats_assert_accurate_take_self_
Sep 13, 2024
Merged

refactor(semantic): Stats::assert_accurate take self#5758
graphite-app[bot] merged 1 commit intomainfrom
09-13-refactor_semantic_stats_assert_accurate_take_self_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Sep 13, 2024

Improve API of Stats::assert_accurate.

Copy link
Member Author

overlookmotel commented Sep 13, 2024

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 13, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the A-semantic Area - Semantic label Sep 13, 2024
@overlookmotel overlookmotel marked this pull request as ready for review September 13, 2024 11:05
@codspeed-hq
Copy link

codspeed-hq bot commented Sep 13, 2024

CodSpeed Performance Report

Merging #5758 will create unknown performance changes

Comparing 09-13-refactor_semantic_stats_assert_accurate_take_self_ (a35fb14) with main (b4b460f)

Summary

🆕 29 new benchmarks

Benchmarks breakdown

Benchmark main 09-13-refactor_semantic_stats_assert_accurate_take_self_ Change
🆕 codegen[checker.ts] N/A 20.6 ms N/A
🆕 codegen_sourcemap[checker.ts] N/A 72.3 ms N/A
🆕 isolated-declarations[vue-id.ts] N/A 391.8 ms N/A
🆕 lexer[RadixUIAdoptionSection.jsx] N/A 22.4 µs N/A
🆕 lexer[antd.js] N/A 19.9 ms N/A
🆕 lexer[cal.com.tsx] N/A 4.9 ms N/A
🆕 lexer[checker.ts] N/A 12 ms N/A
🆕 lexer[pdf.mjs] N/A 3.2 ms N/A
🆕 linter[cal.com.tsx] N/A 1.3 s N/A
🆕 linter[checker.ts] N/A 2.4 s N/A
🆕 minifier[antd.js] N/A 365.2 ms N/A
🆕 minifier[react.development.js] N/A 3.7 ms N/A
🆕 minifier[typescript.js] N/A 655 ms N/A
🆕 parser[RadixUIAdoptionSection.jsx] N/A 77.4 µs N/A
🆕 parser[antd.js] N/A 106.5 ms N/A
🆕 parser[cal.com.tsx] N/A 24.4 ms N/A
🆕 parser[checker.ts] N/A 53.3 ms N/A
🆕 parser[pdf.mjs] N/A 17.4 ms N/A
🆕 semantic[RadixUIAdoptionSection.jsx] N/A 98.7 µs N/A
🆕 semantic[antd.js] N/A 129.1 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Sep 13, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 13, 2024

Merge activity

  • Sep 13, 8:14 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 13, 8:15 AM EDT: Boshen added this pull request to the Graphite merge queue.
  • Sep 13, 8:35 AM EDT: Boshen merged this pull request with the Graphite merge queue.

Improve API of `Stats::assert_accurate`.
@Boshen Boshen force-pushed the 09-13-feat_semantic_add_semanticbuilder_with_stats_ branch from 5725eb5 to f3baa49 Compare September 13, 2024 12:22
@Boshen Boshen force-pushed the 09-13-refactor_semantic_stats_assert_accurate_take_self_ branch from e3786a9 to a35fb14 Compare September 13, 2024 12:22
Base automatically changed from 09-13-feat_semantic_add_semanticbuilder_with_stats_ to main September 13, 2024 12:32
@graphite-app graphite-app bot merged commit a35fb14 into main Sep 13, 2024
@graphite-app graphite-app bot deleted the 09-13-refactor_semantic_stats_assert_accurate_take_self_ branch September 13, 2024 12:35
Boshen added a commit that referenced this pull request Sep 13, 2024
## [0.29.0] - 2024-09-13

- 71116a1 index: [**BREAKING**] Remove ability to index `IndexVec` with
`usize` (#5733) (overlookmotel)

- c3dd2a0 ast: [**BREAKING**] Revert: reduce byte size of
`TaggedTemplateExpression::quasi` by `Boxing` it (#5679) (#5715)
(overlookmotel)

### Features

- 953fe17 ast: Provide `NONE` type for AST builder calls (#5737)
(overlookmotel)
- a362f51 index: Add `IndexVec::shrink_to` (#5713) (overlookmotel)
- e968e9f minifier: Constant fold nullish coalescing operator (#5761)
(Boshen)
- 6bc13f6 minifier: Add `MinimizeConditions` pass (#5747) (Boshen)
- 805fbac oxc_cfg: Better control flow graph dot dot repr (#5731)
(IWANABETHATGUY)
- f3baa49 semantic: Add `SemanticBuilder::with_stats` (#5757)
(overlookmotel)
- 7fa0cb3 semantic: Expose `Stats` (#5755) (overlookmotel)

### Bug Fixes

- 8ff013a minifier: Handle dce CallExpression::callee (#5752) (Boshen)
- 608b7d3 napi/transformer: Refresh plugin doesn't work even after
passing the refresh option (#5702) (Dunqing)
- 042afa9 syntax: Correctly check for valid `RedeclarationId`s (#5759)
(overlookmotel)
- 77d9170 transformer/react: IsStaticChildren should be false when there
is only one child (#5745) (Dunqing)

### Performance

- 333e2e0 index: Remove `Idx` bounds-checks from `first` + `last`
methods (#5726) (overlookmotel)
- d18c896 rust: Use `cow_utils` instead (#5664) (dalaoshu)

### Refactor

- 2890c98 minifier: Add tests for `remove_syntax` (#5749) (Boshen)
- 9a9d8f6 minifier: Replace `self.ast` with `ctx.ast` (#5748) (Boshen)
- 746f7b3 minifier: Align code with closure compiler (#5717) (Boshen)
- 21e2df5 minifier: Replace `VisitMut` with `Traverse` for inject and
define plugins (#5705) (Boshen)
- 4bdc202 rust: Remove some #[allow(unused)] (#5716) (Boshen)
- a35fb14 semantic: `Stats::assert_accurate` take `self` (#5758)
(overlookmotel)
- 4b896f1 semantic: Make `Stats` `Copy` (#5756) (overlookmotel)
- b4b460f semantic: `Stats` store counts as `u32` (#5754)
(overlookmotel)
- 667170c semantic: Rename `Counts` to `Stats` (#5753) (overlookmotel)
- cc0408b semantic: S/AstNodeId/NodeId (#5740) (Boshen)
- 7dfcdfc semantic: Remove `more-asserts` dependency (#5739)
(overlookmotel)
- 6436524 semantic: Fix dead code warning in release mode (#5728)
(overlookmotel)
- e02621d semantic: Re-order use statements (#5712) (overlookmotel)
- ac6203c semantic: Move `Counts` code into counter module (#5710)
(overlookmotel)
- 339fcfc semantic: Rename `Counts` in transform checker (#5709)
(overlookmotel)
- d8ec781 semantic: Remove `record_ast_node` call for `Program` (#5701)
(overlookmotel)

### Styling

- 1857ff0 semantic: Rename vars for node IDs (#5699) (overlookmotel)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-semantic Area - Semantic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants