Skip to content

perf: refactor sameDayTalks constraint - #1280

Open
triceo wants to merge 1 commit into
developmentfrom
csperf
Open

triceo wants to merge 1 commit into
developmentfrom
csperf

Conversation

@triceo

@triceo triceo commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Improves the quickstart by about 40 %.

@triceo
triceo requested a review from TomCools as a code owner December 5, 2026 10:21
Copilot AI balanced review requested due to automatic review settings December 5, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the indexed tag-matching change.

No open issues 🎉

What changed in this PR

Optimizes conference scheduling’s sameDayTalks constraint by replacing an all-pairs filtered stream with indexed tag matching.

Changes:

  • Uses separate content-tag and theme-track streams, counting each matching pair once.
  • Adds a regression test covering pairs that share content, themes, or both.
File Description
use-cases/​conference-scheduling/​src/​test/​java/​org/​acme/​conferencescheduling/​solver/​ConferenceSchedulingConstraintProviderTest.java Verifies matching pairs are penalized once with the expected weight.
use-cases/​conference-scheduling/​src/​main/​java/​org/​acme/​conferencescheduling/​solver/​ConferenceSchedulingConstraintProvider.java Introduces indexed tag matching while preserving penalty calculation.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 5, 2026 10:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the scheduling-constraint optimization.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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