Re: [racket-dev] Embedded racket is much slower in thread 'heavy' programs

2012-12-14 Thread Matthew Flatt
At Thu, 13 Dec 2012 22:57:54 -0800, Eric Dobson wrote: I have a program which is thread 'heavy' and runs much slower in embedded racket (vim) than it does in pure racket. [...] If I don't do in in a separate thread, then vim is comparable because it is using the racket scheduler, and not

Re: [racket-dev] Embedded racket is much slower in thread 'heavy' programs

2012-12-14 Thread Eric Dobson
That fixed it. It is still a bit slower but it is now much closer and good enough for me. (0.945068359375 1.10400390625 0.961181640625) On Fri, Dec 14, 2012 at 5:28 AM, Matthew Flatt mfl...@cs.utah.edu wrote: At Thu, 13 Dec 2012 22:57:54 -0800, Eric Dobson wrote: I have a program which is

[racket-dev] Embedded racket is much slower in thread 'heavy' programs

2012-12-13 Thread Eric Dobson
I have a program which is thread 'heavy' and runs much slower in embedded racket (vim) than it does in pure racket. The program: (note no #lang, as I'm doing this in the repl) (require racket/async-channel) (define (make-passer in) (define chan (make-async-channel)) (thread (lambda ()