Skip to content

[DO NOT MERGE] Build validation for #3492 (avoid runtime Struct creation) - #3496

Closed
jterapin wants to merge 2 commits into
version-3from
3492-build-validate
Closed

jterapin wants to merge 2 commits into
version-3from
3492-build-validate

Conversation

@jterapin

Copy link
Copy Markdown
Contributor

Do not merge. This temporary branch copies customer PR #3492 from byroot/aws-sdk-ruby:runtime-class-creation so the Build SDK workflow can run Catapult checks.

Close this PR and delete its branch after the checks succeed. Review and merge #3492 separately.

🤖 This PR description was drafted with AI assistance for @jterapin. ✨

byroot and others added 2 commits November 16, 2026 20:40
`Struct.new` create a new class and define new methods, which isn't
something you want to happen at runtime as it flushes some VM caches,
and can generate an unbounded amount of methods, which may be compiled
by the JIT.

Since these Struct hold configuration data, we can define a simpler
class that rely on `method_missing`. Attribute access are very sligthly
slower, but negligible for a network API client, and much more friendly
to the Ruby VM.
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Detected 18 possible performance regressions:

  • aws-sdk-s3.get_object_small_allocated_kb - z-score regression: 64.55 -> 75.36. Z-score: 17.3
  • aws-sdk-s3.get_object_large_allocated_kb - z-score regression: 21569.78 -> 21580.59. Z-score: 17.3
  • aws-sdk-s3.put_object_small_allocated_kb - z-score regression: 86.95 -> 99.43. Z-score: 42.64
  • aws-sdk-s3.put_object_large_allocated_kb - z-score regression: 86.97 -> 99.44. Z-score: 42.64
  • aws-sdk-s3.put_object_multipart_large_allocated_kb - z-score regression: 11657.86 -> 11702.56. Z-score: 23.29
  • aws-sdk-sns.publish_small_allocated_kb - z-score regression: 59.7 -> 70.98. Z-score: 36.52
  • aws-sdk-sns.publish_large_allocated_kb - z-score regression: 440.96 -> 452.2. Z-score: 36.15
  • aws-sdk-dynamodb.get_item_small_allocated_kb - z-score regression: 73.91 -> 88.37. Z-score: 28.98
  • aws-sdk-dynamodb.put_item_small_allocated_kb - z-score regression: 81.56 -> 96.77. Z-score: 32.43
  • aws-sdk-kinesis.put_record_small_allocated_kb - z-score regression: 50.47 -> 63.99. Z-score: 42.32
  • aws-sdk-kinesis.put_record_large_allocated_kb - z-score regression: 198.57 -> 212.07. Z-score: 40.35
  • aws-sdk-cloudwatchlogs.put_log_events_small_allocated_kb - z-score regression: 59.14 -> 71.86. Z-score: 41.72
  • aws-sdk-cloudwatchlogs.put_log_events_large_allocated_kb - z-score regression: 5992.9 -> 6005.62. Z-score: 41.72
  • aws-sdk-cloudwatchlogs.get_log_events_small_allocated_kb - z-score regression: 54.66 -> 67.21. Z-score: 41.84
  • aws-sdk-cloudwatchlogs.get_log_events_large_allocated_kb - z-score regression: 7610.28 -> 7622.83. Z-score: 41.84
  • aws-sdk-cloudwatchlogs.filter_log_events_large_allocated_kb - z-score regression: 7806.3 -> 7818.86. Z-score: 41.84
  • aws-sdk-cloudwatch.put_metric_data_small_allocated_kb - z-score regression: 50.66 -> 64.0. Z-score: 44.24
  • aws-sdk-cloudwatch.put_metric_data_large_allocated_kb - z-score regression: 382.92 -> 396.27. Z-score: 44.18

@jterapin jterapin closed this Nov 17, 2026
@jterapin
jterapin deleted the 3492-build-validate branch November 20, 2026 20:35
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