In start_reactor (in src/core/init.rs), RefCells are used unnecessarily so that the match arm closures can be declared as variables. However, if we don't declare these arms as variables and instead just insert them at the end of the match arms, we don't have to use refcells to store these variables. This also allows us to lock stdout (which is also implemented in this PR), which should make paging quicker and decrease flicker when scrolling quickly.
In
start_reactor
(insrc/core/init.rs
),RefCell
s are used unnecessarily so that the match arm closures can be declared as variables. However, if we don't declare these arms as variables and instead just insert them at the end of the match arms, we don't have to use refcells to store these variables. This also allows us to lock stdout (which is also implemented in this PR), which should make paging quicker and decrease flicker when scrolling quickly.