Commit Graph
5 Commits
Author SHA1 Message Date
Behdad EsfahbodandClaude Opus 4.6 ba772af6f8 [gpu] Add -n iterations flag to hb-gpu-encode-all
Useful for profiling — run the encode loop multiple times
and report averaged timing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 14:21:05 -06:00
Behdad EsfahbodandClaude Opus 4.6 0b9f632f44 [gpu] Add timing to hb-gpu-encode-all
Report outline, encode, and wall time with per-glyph rates.
Also restore max blob size reporting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 14:12:09 -06:00
Behdad EsfahbodandClaude Opus 4.6 686f3caa86 [gpu] Implement blob recycling in encode
recycle_blob stores the blob; encode reuses both the blob object
and its data buffer when the buffer is >= needed and < 2x needed.
Otherwise malloc fresh and replace_buffer on the recycled blob.

hb_blob_t::replace_buffer now skips destroy_user_data when the
new data pointer is the same as the old one (same-buffer reuse).

Add explicit destructor to hb_gpu_draw_t for recycled_blob cleanup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 15:13:44 -06:00
Behdad EsfahbodandClaude Opus 4.6 6d355dddce [gpu] Report sizes in KiB in hb-gpu-encode-all
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 14:31:36 -06:00
Behdad EsfahbodandClaude Opus 4.6 198dc300d0 [gpu] Add hb-gpu-encode-all utility
Encodes all glyphs in a font, reports failures and summary
statistics (encoded/empty/failed counts, total and average sizes).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 14:19:04 -06:00