Skip to content

perf(prebid-analytics): drop the discarded auction transform in trackAuctionEnd - #334

Open
mosherBT wants to merge 1 commit into
masterfrom
perf/prebid-analytics-drop-dead-transform
Open

perf(prebid-analytics): drop the discarded auction transform in trackAuctionEnd#334
mosherBT wants to merge 1 commit into
masterfrom
perf/prebid-analytics-drop-dead-transform

Conversation

@mosherBT

@mosherBT mosherBT commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Why

trackAuctionEnd built a full auction model — mapped bidder requests with EID dedup, mapped bids, three lookup indexes, then merged in bidsReceived/noBids/timeoutBids — and never read the result, because the stored auction keeps the raw event and toWitness recomputes the identical transformation when the bidWinTimeout fires.

What Changed

  • lib/addons/prebid/analytics.ts: delete the discarded transform (~131 lines), roughly halving per-auction work on the auction-end path with no change to the witness payload.
  • Same file: drop timeout, bidsReceived and noBids from the destructuring, since only the deleted block used them.

How to Test

  • Tested
  • Docs updated — n/a, nothing a consumer calls changed

Notes

  • Breaking change
  • Requires release

…AuctionEnd

trackAuctionEnd built a full auction model - mapped bidderRequests with
deduplicated EIDs, mapped bids, three lookup indexes, then merged in
bidsReceived, noBids and timeoutBids - and never read the result. The
stored auction keeps the raw event, and toWitness recomputes the same
transformation from that raw event when the bidWinTimeout fires.

Deleting it halves the per-auction work with no change to the payload.
@mosherBT
mosherBT marked this pull request as ready for review September 3, 2026 20:18
@mosherBT
mosherBT requested review from a team as code owners September 3, 2026 20:18
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