Skip to content

Conversation

@N-R-K
Copy link
Collaborator

@N-R-K N-R-K commented Jul 24, 2022

a lot of the extension use the same icon. this can be exploited via
having an array with all the unique icons and then storing a single byte
index into the unique array.

when using O_EMOJI this results in around ~1.7KiB drop in the total
table size. O_NERD and O_ICONS get roughly ~0.5KiB savings.

N-R-K added 2 commits July 24, 2022 16:24
a lot of the extension use the same icon. this can be exploited via
having an array with all the unique icons and then storing a single byte
index into the unique array.

when using `O_EMOJI` this results in around ~1.7KiB drop in the total
table size. `O_NERD` and `O_ICONS` get roughly ~0.5KiB savings.
@N-R-K
Copy link
Collaborator Author

N-R-K commented Jul 24, 2022

Btw, on master I don't see any drop in binary size. But on my local branch (where I use additional compiler optimizations) I see some binary size drop as well.

@jarun jarun merged commit f829afe into jarun:master Jul 24, 2022
@jarun
Copy link
Owner

jarun commented Jul 24, 2022

👍

@N-R-K N-R-K deleted the icon_compaction branch July 24, 2022 10:51
@N-R-K N-R-K restored the icon_compaction branch July 24, 2022 10:55
@N-R-K N-R-K deleted the icon_compaction branch July 24, 2022 10:55
@N-R-K N-R-K mentioned this pull request Jul 24, 2022
6 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants