Skip to content

Conversation

@rconnell9
Copy link
Contributor

Cherry-pick from:
#9385

Avoid expensive string array operations when performing target source evaluation.

Local timings for target source evaluation of protoc before and after:

Before: 'swift-protobuf': TargetSourcesBuilder.run() for target 'protoc' took 11.544s
After: 'swift-protobuf': TargetSourcesBuilder.run() for target 'protoc' took 0.190s

CPU cycles for full build of swift-protobuf:
Before: 33.43 G
After: 5.72 G

Motivation:

Fixes: #9304

…ces causes a performance degradation in TargetSourcesBuilder
@rconnell9 rconnell9 requested a review from a team as a code owner December 14, 2025 02:36
@rconnell9
Copy link
Contributor Author

@swift-ci test

@rconnell9 rconnell9 enabled auto-merge (squash) December 14, 2025 02:38
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.

1 participant