aboutsummaryrefslogtreecommitdiff
path: root/data/core/node.lua
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2021-09-03 00:50:21 +0200
committerGuldoman <giulio.lettieri@gmail.com>2021-09-03 00:55:10 +0200
commite559afaefc269231429ec51c9261dacca37f874e (patch)
treedf7b7aa977360bfb511666bcf7efedf0a770d632 /data/core/node.lua
parentf18629ab640423807ec44fb9163a0222ad850aae (diff)
downloadpragtical-e559afaefc269231429ec51c9261dacca37f874e.tar.gz
pragtical-e559afaefc269231429ec51c9261dacca37f874e.zip
Add a simple cache to `DocView:get_h_scrollable_size`
This function gets called at every `core.step`, so we should avoid having to recalculate the scrollable size every time, as it could get very expensive on long lines.
Diffstat (limited to 'data/core/node.lua')
0 files changed, 0 insertions, 0 deletions