summaryrefslogtreecommitdiff
path: root/stest.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-03-24 00:37:55 +0600
committerrafa_99 <raroma09@gmail.com>2022-03-25 23:12:39 +0000
commit38540c552941c3a348605d046cf27606afd5de98 (patch)
treebbb0a78c22d49ad7211027c697f03556c670ff25 /stest.c
parent1f6103dbc96515287a956172c6e751c04fd74904 (diff)
inputw: improve correctness and startup performance
a massive amount of time inside readstdin() is spent trying to get the max input width and then put it into inputw, only for it to get clamped down to mw/3 inside setup(). it makes more sense to calculate inputw inside setup() once we have mw available. similar to the last patch, i see noticeable startup performance improvement: before -> after 160ms -> 60ms additionally this will take fallback fonts into account compared to the previous version, so it's not only more performant but also more correct.
Diffstat (limited to 'stest.c')
0 files changed, 0 insertions, 0 deletions