Skip to content

perf(semantic): implement FusedIterator for AstNodeParentIter#12094

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-06-perf_semantic_implement_fusediterator_for_astnodeparentiter_
Jul 7, 2025
Merged

perf(semantic): implement FusedIterator for AstNodeParentIter#12094
graphite-app[bot] merged 1 commit intomainfrom
07-06-perf_semantic_implement_fusediterator_for_astnodeparentiter_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 6, 2025

All iterators which never return Some after returning None should implement FusedIterator. It can speed up code using the iterator in some instances. AstNodeParentIter follows this pattern, so implement FusedIterator on it.

@github-actions github-actions bot added A-semantic Area - Semantic C-performance Category - Solution not expected to change functional behavior, only performance labels Jul 6, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review July 6, 2025 12:42
@overlookmotel overlookmotel requested a review from Dunqing as a code owner July 6, 2025 12:42
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 6, 2025

CodSpeed Instrumentation Performance Report

Merging #12094 will improve performances by 12.31%

Comparing 07-06-perf_semantic_implement_fusediterator_for_astnodeparentiter_ (2bf1d7e) with main (42ebf43)

Summary

⚡ 1 improvements
✅ 37 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[cal.com.tsx] 3.4 ms 3.1 ms +12.31%

Copy link
Member

@camchenry camchenry left a comment

Choose a reason for hiding this comment

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

Had no idea about this. Good to know!

@camchenry camchenry added the 0-merge Merge with Graphite Merge Queue label Jul 7, 2025
Copy link
Member

camchenry commented Jul 7, 2025

Merge activity

…2094)

All iterators which never return `Some` after returning `None` should implement `FusedIterator`. It can speed up code using the iterator in some instances. `AstNodeParentIter` follows this pattern, so implement `FusedIterator` on it.
@graphite-app graphite-app bot force-pushed the 07-06-perf_semantic_implement_fusediterator_for_astnodeparentiter_ branch from 3c3dbf6 to 2bf1d7e Compare July 7, 2025 01:58
@graphite-app graphite-app bot merged commit 2bf1d7e into main Jul 7, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 7, 2025
@graphite-app graphite-app bot deleted the 07-06-perf_semantic_implement_fusediterator_for_astnodeparentiter_ branch July 7, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-semantic Area - Semantic C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants