diff options
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 '%252525252525252525253fid%252525252525252525253d2dcf2dc55a6d1cb550e1461c21ceaa9954e45047%2525252525252525253fid%2525252525252525253d3c4f554528448355eb0e9f19269d19760f8b0dae%25252525252525253fid%25252525252525253de73651f12a406629778f02d8e5acbe2caec0dfc2%252525252525253fid%252525252525253de73651f12a406629778f02d8e5acbe2caec0dfc2&id2%252525252525253d31fa07b9849b0ffbf4b7efb55943f466b3ff160f%2525252525253fid%2525252525253de73651f12a406629778f02d8e5acbe2caec0dfc2%25252525253fid%25252525253de73651f12a406629778f02d8e5acbe2caec0dfc2%252525253fid%252525253d31fa07b9849b0ffbf4b7efb55943f466b3ff160f%2525253fid%2525253d6818e07291f3b2913e687c8ec3d3fe4711724050%25253fid%25253d6818e07291f3b2913e687c8ec3d3fe4711724050%253fid%253db43ec0577f2ad8ad33a0b893fe5360d966036786%3fid%3d22511c41d55a38a770541ae617a09383d5e6ad1c?id=77526f756e23e362081ac807521f901f2e5cd5e6')
0 files changed, 0 insertions, 0 deletions