[plt-scheme] Re: [plt-dev] Re: Speed up check-syntax

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Tue Nov 10 08:43:28 EST 2009

On 09-11-09 23:08, Eli Barzilay wrote:
> 4. The usual way to do these things is to have it loaded when it is
>     idle (exactly what Stephen said) -- but then don't just start to
>     load it so everything becomes slow, just do that in little
>     execution chunks which are done only if the system is still
>     otherwise idle.  I think that MzScheme could use some more
>     functionality in this area -- a nice feature to have would be a way
>     for a thread to change its priority where this can also be a "run
>     me only when otherwise idle" (it would be especially nice to have a
>     hierarchy of these: "run me when otherwise idle including 1st-level
>     idle-priority threads, and give me only 20% running time").

Looks like you want something simillar to GCD [1][2][3]. I think that it 
should be quite easy to port GCD ideas to Scheme (not the multicore 
stuff but the dependencies and queues). Making it sensibly integrate 
with the system GCD library would be the challenging part.

[1] http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/12
[2] http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/13

Jakub Piotr Cłapa

Posted on the users mailing list.