summaryrefslogtreecommitdiff
path: root/%25252525253fid%25252525253d77526f756e23e362081ac807521f901f2e5cd5e6%25252525...
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-03-24 00:37:55 +0600
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-25 22:49:07 +0100
commit77526f756e23e362081ac807521f901f2e5cd5e6 (patch)
tree4028e5ba2c5ad85e51fd1f17a124f0851289427b /%25252525253fid%25252525253d77526f756e23e362081ac807521f901f2e5cd5e6%252525253fid%252525253d77526f756e23e362081ac807521f901f2e5cd5e6%2525253fid%2525253d77526f756e23e362081ac807521f901f2e5cd5e6&id2%2525253d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5%25253fid%25253d77526f756e23e362081ac807521f901f2e5cd5e6&id2%25253d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5%253fid%253d77526f756e23e362081ac807521f901f2e5cd5e6%3fid%3d77526f756e23e362081ac807521f901f2e5cd5e6&id2%3d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5?id=77526f756e23e362081ac807521f901f2e5cd5e6
parent7269c5355d257dd2ad2c53f15dc9c1cf6796aea5 (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 '%25252525253fid%25252525253d77526f756e23e362081ac807521f901f2e5cd5e6%252525253fid%252525253d77526f756e23e362081ac807521f901f2e5cd5e6%2525253fid%2525253d77526f756e23e362081ac807521f901f2e5cd5e6&id2%2525253d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5%25253fid%25253d77526f756e23e362081ac807521f901f2e5cd5e6&id2%25253d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5%253fid%253d77526f756e23e362081ac807521f901f2e5cd5e6%3fid%3d77526f756e23e362081ac807521f901f2e5cd5e6&id2%3d7269c5355d257dd2ad2c53f15dc9c1cf6796aea5?id=77526f756e23e362081ac807521f901f2e5cd5e6')
0 files changed, 0 insertions, 0 deletions