Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mangler): use characters in the order of their likely frequency #8771

Conversation

sapphi-red
Copy link
Contributor

@sapphi-red sapphi-red commented Jan 28, 2025

Just noticed that we can use a static list here. I think this has no downsides. To have better compression, we can actually count the characters, but I guess there won't be much difference normally.

Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the C-enhancement Category - New feature or request label Jan 28, 2025
@sapphi-red sapphi-red marked this pull request as ready for review January 28, 2025 15:49
@sapphi-red sapphi-red force-pushed the 01-29-feat_mangler_use_characters_in_the_order_of_their_likely_frequency branch from d6180da to 94784df Compare January 28, 2025 15:52
Copy link

codspeed-hq bot commented Jan 28, 2025

CodSpeed Performance Report

Merging #8771 will not alter performance

Comparing 01-29-feat_mangler_use_characters_in_the_order_of_their_likely_frequency (86b6219) with main (0c4c739)

Summary

✅ 33 untouched benchmarks

@sapphi-red sapphi-red force-pushed the 01-29-feat_mangler_use_characters_in_the_order_of_their_likely_frequency branch from 94784df to 810f3ac Compare January 28, 2025 16:04
@github-actions github-actions bot added the A-minifier Area - Minifier label Jan 28, 2025
@Boshen
Copy link
Member

Boshen commented Jan 29, 2025

Smart!

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jan 29, 2025
Copy link
Member

Boshen commented Jan 29, 2025

Merge activity

  • Jan 28, 9:20 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 28, 9:20 PM EST: A user added this pull request to the Graphite merge queue.
  • Jan 28, 9:25 PM EST: A user merged this pull request with the Graphite merge queue.

…8771)

Just noticed that we can use a static list here. I think this has no downsides. To have better compression, we can actually count the characters, but I guess there won't be much difference normally.
@Boshen Boshen force-pushed the 01-29-feat_mangler_use_characters_in_the_order_of_their_likely_frequency branch from 810f3ac to 86b6219 Compare January 29, 2025 02:20
@graphite-app graphite-app bot merged commit 86b6219 into main Jan 29, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 01-29-feat_mangler_use_characters_in_the_order_of_their_likely_frequency branch January 29, 2025 02:25
@oxc-bot oxc-bot mentioned this pull request Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue 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