Skip to content

Make all constant helper tables inline const - #22

Merged
yhirose merged 1 commit into
yhirose:masterfrom
samhocevar-forks:patches/inline-const-tables
Jul 23, 2026
Merged

Make all constant helper tables inline const#22
yhirose merged 1 commit into
yhirose:masterfrom
samhocevar-forks:patches/inline-const-tables

Conversation

@samhocevar

Copy link
Copy Markdown
Contributor

Without "inline const", these objects will be allocated and initialised once for every compilation unit that includes <unicodelib.h>. With this tiny change, the initialisation code will still be compiled multiple times, but will only be executed once at runtime, saving about 380 kB of memory for each compilation unit.

Without "inline const", these objects will be allocated and initialised once for
every compilation unit that includes <unicodelib.h>. With this tiny change, the
initialisation code will still be compiled multiple times, but will only be executed
once at runtime, saving about 380 kB of memory for each compilation unit.
@samhocevar
samhocevar force-pushed the patches/inline-const-tables branch from 5b9da8c to 40a4707 Compare July 23, 2026 10:53
@yhirose
yhirose merged commit bfdd356 into yhirose:master Jul 23, 2026
3 checks passed
@yhirose

yhirose commented Jul 23, 2026

Copy link
Copy Markdown
Owner

@samhocevar thanks!

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