Skip to content

10.2: Remove virtual dispatch from LogData#13124

Merged
cmcfarlen merged 1 commit into
apache:10.2.xfrom
bneradt:fix_malformed_h2_request_logging_performance-codex-10-2
Apr 28, 2026
Merged

10.2: Remove virtual dispatch from LogData#13124
cmcfarlen merged 1 commit into
apache:10.2.xfrom
bneradt:fix_malformed_h2_request_logging_performance-codex-10-2

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Apr 28, 2026

This addresses a performance regression added by #13059.

Malformed pre-transaction logging introduced an extra virtual data interface on the normal access log path. That made every completed transaction pay for indirection that is only needed for rare protocol-layer failures.

This replaces the virtual hierarchy with a concrete composed TransactionLogData wrapper. This keeps LogAccess using one data object while routing the common HttpSM path through direct getters and falling back to owned pre-transaction data only when no HttpSM exists.

(cherry picked from commit 05a916f)

This addresses a performance regression added by apache#13059.

Malformed pre-transaction logging introduced an extra virtual data
interface on the normal access log path. That made every completed
transaction pay for indirection that is only needed for rare
protocol-layer failures.

This replaces the virtual hierarchy with a concrete composed
TransactionLogData wrapper. This keeps LogAccess using one data object
while routing the common HttpSM path through direct getters and falling
back to owned pre-transaction data only when no HttpSM exists.

(cherry picked from commit 05a916f)
@bneradt bneradt added this to the 10.2.0 milestone Apr 28, 2026
@bneradt bneradt requested review from cmcfarlen and masaori335 April 28, 2026 15:33
@bneradt bneradt self-assigned this Apr 28, 2026
@cmcfarlen cmcfarlen merged commit 131c733 into apache:10.2.x Apr 28, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Apr 28, 2026
@cmcfarlen cmcfarlen removed this from ATS v10.2.x Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants