File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -825,7 +825,8 @@ impl RMain {
825
825
826
826
// Process R's polled events regularly while waiting for console input.
827
827
// We used to poll every 200ms but that lead to visible delays for the
828
- // processing of plot events.
828
+ // processing of plot events, it also slowed down callbacks from the later
829
+ // package. 50ms seems to be more in line with RStudio (posit-dev/positron#7235).
829
830
let polled_events_rx = crossbeam:: channel:: tick ( Duration :: from_millis ( 50 ) ) ;
830
831
831
832
let r_request_index = select. recv ( & r_request_rx) ;
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ pub fn run_activity_handlers() {
108
108
//
109
109
// We run this in a loop just to make sure the R help server can
110
110
// be as responsive as possible when rendering help pages.
111
+ //
112
+ // Note that the later package also adds an input handler to `R_InputHandlers`
113
+ // which runs the later event loop, so it's also important that we are fairly
114
+ // responsive for that as well (posit-dev/positron#7235).
111
115
let mut fdset = R_checkActivity ( 0 , 1 ) ;
112
116
113
117
while fdset != std:: ptr:: null_mut ( ) {
You can’t perform that action at this time.
0 commit comments