Skip to content

Conversation

@soutaro
Copy link
Member

@soutaro soutaro commented Sep 26, 2025

Reuse empty array and hash objects as in #1950.

Evaluation with bin/benchmark-parse.rb did not show any improvement in either performance or memory usage. I believe memory usage can be improved with this when we keep the AST in memory after parsing -- the actual usecase, unlike the benchmark.

@soutaro soutaro added this to the RBS 4.0 milestone Sep 26, 2025
@soutaro soutaro enabled auto-merge September 26, 2025 08:14
@soutaro soutaro added this pull request to the merge queue Sep 26, 2025
Merged via the queue into master with commit 653bc27 Sep 26, 2025
22 checks passed
@soutaro soutaro deleted the reuse-array branch September 26, 2025 08:24
soutaro added a commit that referenced this pull request Oct 6, 2025
Reuse empty array and hash
@soutaro soutaro mentioned this pull request Oct 6, 2025
soutaro added a commit that referenced this pull request Oct 6, 2025
Reuse empty array and hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants