Skip to content

perf(parser): use ArenaVec to store decorators#10437

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-16-perf_parser_use_arenavec_to_store_decorators
Apr 16, 2025
Merged

perf(parser): use ArenaVec to store decorators#10437
graphite-app[bot] merged 1 commit intomainfrom
04-16-perf_parser_use_arenavec_to_store_decorators

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Apr 16, 2025

No performance changes show in the CodeSpeed because we don't have a benchmark that includes decorators. According to convention, we always store child/leaf ASTs used for building ASTs in an arena to avoid extra allocations. We have got many performances from this kind of change, so I think it is good!

@github-actions github-actions bot added A-parser Area - Parser C-performance Category - Solution not expected to change functional behavior, only performance labels Apr 16, 2025
Copy link
Member Author

Dunqing commented Apr 16, 2025


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.

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 16, 2025

CodSpeed Instrumentation Performance Report

Merging #10437 will not alter performance

Comparing 04-16-perf_parser_use_arenavec_to_store_decorators (93b8e86) with main (bb8a078)

Summary

✅ 36 untouched benchmarks

@Dunqing Dunqing marked this pull request as ready for review April 16, 2025 08:39
@Boshen
Copy link
Member

Boshen commented Apr 16, 2025

I may be able to move the decorators around ... but not today.

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Apr 16, 2025
Copy link
Member

Boshen commented Apr 16, 2025

Merge activity

No performance changes show in the `CodeSpeed` because we don't have a benchmark that includes decorators. According to convention, we always store child/leaf ASTs used for building ASTs in an arena to avoid extra allocations. We have got many performances from this kind of change, so I think it is good!
@graphite-app graphite-app bot force-pushed the 04-16-perf_parser_use_arenavec_to_store_decorators branch from 38847c0 to 93b8e86 Compare April 16, 2025 08:41
@graphite-app graphite-app bot merged commit 93b8e86 into main Apr 16, 2025
29 checks passed
@graphite-app graphite-app bot deleted the 04-16-perf_parser_use_arenavec_to_store_decorators branch April 16, 2025 08:49
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser 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