{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":93969205,"defaultBranch":"master","name":"terraform-provider-aws","ownerLogin":"bflad","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-06-10T22:40:39.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/189114?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1687961361.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"d73df20f24290f4e6c6b9e9d2098fe8ad27a1e98","ref":"refs/heads/bflad/wafv2-empty-schema-memory","pushedAt":"2023-06-28T14:09:21.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"bflad","name":"Brian Flad","path":"/bflad","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/189114?s=80&v=4"},"commit":{"message":"service/wafv2: Allocate memory once for emptySchema()\n\nReference: https://github.com/hashicorp/terraform-provider-aws/issues/31722\n\nHappened to notice this was generating a decent number of memory allocations while profiling and its a small change.\n\nOutput from acceptance testing:\n\n```\n--- PASS: TestAccWAFV2RuleGroup_basic (30.05s)\n--- PASS: TestAccWAFV2RuleGroup_disappears (32.14s)\n--- PASS: TestAccWAFV2RuleGroup_Operators_maxNested (34.74s)\n--- PASS: TestAccWAFV2RuleGroup_changeMetricNameForceNew (58.55s)\n--- PASS: TestAccWAFV2RuleGroup_changeNameForceNew (60.83s)\n--- PASS: TestAccWAFV2RuleGroup_changeCapacityForceNew (65.89s)\n--- PASS: TestAccWAFV2RuleGroup_updateRule (68.22s)\n--- PASS: TestAccWAFV2RuleGroup_logicalRuleStatements (85.48s)\n--- PASS: TestAccWAFV2RuleGroup_LabelMatchStatement (58.55s)\n--- PASS: TestAccWAFV2RuleGroup_byteMatchStatement (60.96s)\n--- PASS: TestAccWAFV2RuleGroup_ipSetReferenceStatement (35.66s)\n--- PASS: TestAccWAFV2RuleGroup_RateBased_maxNested (35.63s)\n--- PASS: TestAccWAFV2RuleGroup_updateRuleProperties (105.28s)\n--- PASS: TestAccWAFV2RuleGroup_sizeConstraintStatement (59.81s)\n--- PASS: TestAccWAFV2RuleGroup_xssMatchStatement (59.43s)\n--- PASS: TestAccWAFV2RuleGroup_IPSetReferenceStatement_ipsetForwardedIP (112.62s)\n--- PASS: TestAccWAFV2RuleGroup_sqliMatchStatement (58.73s)\n--- PASS: TestAccWAFV2RuleGroup_geoMatchStatement (58.94s)\n--- PASS: TestAccWAFV2RuleGroup_GeoMatchStatement_forwardedIP (58.18s)\n--- PASS: TestAccWAFV2RuleGroup_RuleLabels (58.66s)\n--- PASS: TestAccWAFV2RuleGroup_tags (83.04s)\n--- PASS: TestAccWAFV2RuleGroup_rateBasedStatement (109.78s)\n--- PASS: TestAccWAFV2RuleGroup_regexMatchStatement (32.72s)\n--- PASS: TestAccWAFV2RuleGroup_minimal (25.63s)\n--- PASS: TestAccWAFV2RuleGroup_regexPatternSetReferenceStatement (32.67s)\n--- PASS: TestAccWAFV2RuleGroup_ruleAction (75.28s)\n--- PASS: TestAccWAFV2RuleGroup_RuleAction_customRequestHandling (50.20s)\n--- PASS: TestAccWAFV2RuleGroup_RuleAction_customResponse (65.41s)\n--- PASS: TestAccWAFV2RuleGroup_ByteMatchStatement_fieldToMatch (264.78s)\n```","shortMessageHtmlLink":"service/wafv2: Allocate memory once for emptySchema()"}},{"before":"ead2e7d2754b8d9f6f0eca5b5d5f58d22aad6321","after":null,"ref":"refs/heads/bflad/shared-tag-schema","pushedAt":"2023-06-28T13:48:34.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"bflad","name":"Brian Flad","path":"/bflad","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/189114?s=80&v=4"}},{"before":null,"after":"ead2e7d2754b8d9f6f0eca5b5d5f58d22aad6321","ref":"refs/heads/bflad/shared-tag-schema","pushedAt":"2023-06-27T20:26:37.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"bflad","name":"Brian Flad","path":"/bflad","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/189114?s=80&v=4"},"commit":{"message":"internal/tags: Used shared memory allocation for shared tag schemas\n\nReference: https://github.com/hashicorp/terraform-provider-aws/issues/31722\n\nRather than allocating memory for each shared tag schema, reference the same schema data. Each `schema.Schema` struct allocation is ~304 bytes, which adds up when multiplied times a few hundred resources using it. Not a big reduction by any means, but seems like a quick way to reduce some unnecessary memory usage.\n\nUpdated the two code locations which were directly mutating the result of shared tag schemas.","shortMessageHtmlLink":"internal/tags: Used shared memory allocation for shared tag schemas"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADSs6oZgA","startCursor":null,"endCursor":null}},"title":"Activity ยท bflad/terraform-provider-aws"}