Skip to content

Comments

bugfix(macos): optimize font loading memory usage#271

Open
pmnxis wants to merge 1 commit intoservo:mainfrom
pmnxis:pmnxis/mac_os_all_fonts_memory_usage
Open

bugfix(macos): optimize font loading memory usage#271
pmnxis wants to merge 1 commit intoservo:mainfrom
pmnxis:pmnxis/mac_os_all_fonts_memory_usage

Conversation

@pmnxis
Copy link

@pmnxis pmnxis commented Jan 2, 2026

Implement lazy loading for system fonts to reduce memory consumption from 1.9GB to 161KB. Use path-based handles instead of loading all font data into memory during enumeration.

  • 99.99% memory reduction (1.91 GB -> 161 KB)

#270
pmnxis/chama-optics#5

Implement lazy loading for system fonts to reduce memory consumption
from 1.9GB to 161KB. Use path-based handles instead of loading all
font data into memory during enumeration.

- 99.99% memory reduction (1.91 GB -> 161 KB)
- 74% fewer allocations (77 GB -> 20 GB total)
- 71% faster loading (8.68s -> 2.50s)

servo#270
pmnxis/chama-optics#5
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.

1 participant