Skip to content

Collect CSS property handlers without copying per provider - #4441

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:vogella/css-property-handlers-copy
Oct 8, 2026
Merged

vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:vogella/css-property-handlers-copy

Conversation

@vogella

@vogella vogella commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

CSSEngineImpl.getCSSPropertyHandlers(String) started from a non-null list but still checked it for null, and copied the collected list once for every handler provider before appending. It now appends each provider's handlers to one list, which drops the dead branch and the extra allocations on the composite property lookup path.

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.

Copilot review overview

🟢 Approval recommended

The focused refactoring preserves ordering and behavior while eliminating unnecessary allocations.

Review effort: Balanced
Findings: None

What changed in this PR

Simplifies composite CSS property-handler collection while preserving behavior and avoiding repeated list allocations.

Changes:

  • Removes an unreachable null branch.
  • Appends provider handlers directly to one list.
File Description
CSSEngineImpl.java Streamlines CSS property-handler aggregation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

   864 files  ±0     864 suites  ±0   1h 6m 56s ⏱️ + 19m 51s
 8 395 tests ±0   8 153 ✅ ±0  242 💤 ±0  0 ❌ ±0 
21 054 runs  ±0  20 377 ✅ ±0  677 💤 ±0  0 ❌ ±0 

Results for commit c6891b5. ± Comparison against base commit 0d11bad.

♻️ This comment has been updated with latest results.

@vogella
vogella force-pushed the vogella/css-property-handlers-copy branch from ab33931 to d615341 Compare October 7, 2026 06:23
CSSEngineImpl.getCSSPropertyHandlers(String) copied the collected list for every provider and kept a null check that could never be true. It now adds each provider's handlers to a single list.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@vogella
vogella force-pushed the vogella/css-property-handlers-copy branch from d615341 to c6891b5 Compare October 8, 2026 06:32
@vogella
vogella merged commit 6b6dd3f into eclipse-platform:master Oct 8, 2026
18 checks passed
@vogella
vogella deleted the vogella/css-property-handlers-copy branch October 8, 2026 07:58
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