Skip to content

Commit fa14c8f

Browse files
authored
Improve responsiveness when idle at the R console for POSIX systems (#251)
1 parent f53cd50 commit fa14c8f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# later (development version)
22

3+
* Improved responsiveness when idle at the R console on POSIX systems (#251).
4+
35
* Fixes #249: Moved the contents of `inst/include/later.h` into `later_api.h` to ensure R headers are not included before Rcpp headers when Rcpp auto-includes `$PACKAGE.h` in RcppExports.cpp. The public API header remains `later_api.h` (#250).
46

57
# later 1.4.5

src/later_posix.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ static void async_input_handler(void *data) {
9898
// Instead, we set the file descriptor to cold, and tell the timer to fire
9999
// again in a few milliseconds. This should give enough breathing room that
100100
// we don't interfere with the sockets too much.
101-
timer.set(Timestamp(0.01));
101+
// shikokuchuo 2026-02-07: reduced to just one millisecond
102+
timer.set(Timestamp(0.001));
102103
return;
103104
}
104105

0 commit comments

Comments
 (0)