Skip to content

Add PGO support to xcaddy#259

Merged
mholt merged 3 commits intocaddyserver:masterfrom
joeldemars:163-pgo
Mar 17, 2026
Merged

Add PGO support to xcaddy#259
mholt merged 3 commits intocaddyserver:masterfrom
joeldemars:163-pgo

Conversation

@joeldemars
Copy link
Contributor

See #163

Adds --pgo flag for specifying PGO profile.
Uses default.pgo if present and no profile is specified.
Adds documentation and "Experimental" disclaimers.

I added a PgoProfile field to the Builder struct. I didn't add new automated tests; adding tests for what was essentially a single if statement in builder.go seemed like overkill to me and I didn't see any simple way to hook into commands.go to add a test for the default.pgo logic. Let me know if there are any changes you'd like or if you feel differently about tests (and if so, what you'd like those tests to look like).

@joeldemars joeldemars mentioned this pull request Mar 14, 2026
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, let's give this a shot!

@mholt
Copy link
Member

mholt commented Mar 16, 2026

Before we merge, can you fix the lint errors (gofmt)?

@joeldemars
Copy link
Contributor Author

That should take care of it.

@mholt mholt merged commit f0b9531 into caddyserver:master Mar 17, 2026
8 checks passed
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