Skip to content

perf(proxy/upstream_connection): setup configuration in init phase - #1602

Open
tkan145 wants to merge 1 commit into
3scale:masterfrom
tkan145:more-perf
Open

perf(proxy/upstream_connection): setup configuration in init phase#1602
tkan145 wants to merge 1 commit into
3scale:masterfrom
tkan145:more-perf

Conversation

@tkan145

@tkan145 tkan145 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

Previously, the configuration for these two policies was set up in the export() phase. This phase only runs once, when the PolicyChain is built at configuration load time.

In PR #1485, we moved those parts to the rewrite phase and caused a small allocation per request. This PR eliminates that by moving the configuration construction to the init phase.

@tkan145
tkan145 requested a review from a team as a code owner August 27, 2026 08:21
Previously, the configuration for these two policies was set up in the
export() phase. This phase only runs once, when the PolicyChain is built
at configuration load time.

In PR 3scale#1485, we moved those parts to the rewrite phase and caused a small
allocation per request. This PR eliminates that by moving the configuration
construction to the init phase.
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