aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-14 07:50:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-14 07:50:49 +0000
commit37b15adcd8306652ce21804cb6140d1361adc94f (patch)
tree171295b380458ed96a2bbbd3b6502eff608c227e /debug.h
parentbox-drawing: NOINLINE braille (diff)
term: turn ‘box-drawings’ array into three dynamically allocated arrays
The box_drawings array is now quite large, and uses up ~4K when *empty*. This patch splits it up into three separate, dynamically allocated arrays; one for the traditional box+line drawing and block elements glyphs, one for braille, and one for the legacy computing symbols. When we need to render a glyph, the *entire* array (that it belongs to) is allocated. I.e this is one step closer to a dynamic glyph cache (like the one fcft uses), but doesn’t go all the way. This is especially nice for people with ‘box-drawings-uses-font-glyphs=yes’; for them, the custom glyphs now uses 3*8 bytes (for the three array pointers), instead of 4K.
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions