Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Aug 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings August 9, 2025 15:51
@github-actions github-actions bot added A-minifier Area - Minifier C-enhancement Category - New feature or request labels Aug 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request enhances the minifier's condition minimization by optimizing boolean comparisons. Specifically, it transforms expressions like f(!a === !1) into f(!!a) and similar patterns.

  • Refactors the try_minimize_binary function to handle boolean literal comparisons more efficiently
  • Simplifies the logic by early returns and improved value evaluation
  • Adds comprehensive tests for the new optimization patterns

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 9, 2025

CodSpeed Instrumentation Performance Report

Merging #12942 will not alter performance

Comparing 08-09-feat_minifier_f_a_1_-f_a (ba1052d) with main (d7e1ddb)

Summary

✅ 34 untouched benchmarks

@Boshen Boshen force-pushed the 08-09-feat_minifier_f_a_1_-_f_a_ branch from 3eae493 to ba1052d Compare August 9, 2025 16:08
@Boshen Boshen merged commit e0e835b into main Aug 9, 2025
30 checks passed
@Boshen Boshen deleted the 08-09-feat_minifier_f_a_1_-_f_a_ branch August 9, 2025 16:19
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants