[R-SIG-Mac] performance difference GUI vs. terminal
Simon Urbanek
simon.urbanek at r-project.org
Thu May 19 22:29:03 CEST 2005
On May 19, 2005, at 11:50 AM, stefano iacus wrote:
> could we add a pref checkbox? Like "Give cpu time to other
> processes during R calculations" yes/no which disables/enables
> R_ProcessEvent calls in eval().
I don't think we need it anymore, because R_ProcessEvents simply
checks how much time elapsed since it ran the system loop and if it's
less that a given time, it will just return (more precisely it
doesn't even bother calling the REngine callback). Currently I set
the threshold to 150ms which seems reasonable to me - i.e. the
longest response time to a system event (except for signals) is a bit
over 150ms.
We could make the window configurable, but I don't think making it
bigger will have significant impact on the performance. I could make
it even adaptive such that the window will increase during long
periods of R activity, but again, I don't think it's really necessary
(unless, of course, someone provides an example where it would make a
difference).
Cheers,
Simon
More information about the R-SIG-Mac
mailing list