
Has anyone else found that in the last few version DrRacket is consuming a lot of memory and taking quite a bit of startup time when running the REPL?

Racket is just sitting idle right now with three files open and it’s eating 1.4GB of RAM

@jarcane What OS are you on? And what have you run? Or is that memory usage just what happens if you open DrRacket?

On both MacOS and Windows I have had similar problems. In windows right now, an idle empty window is around 6–700MB

It could be overhead from the Heresy language module, but once I run even a simple program with it, it spikes over a gig and stays there. I don’t remember ever getting this big before on older versions though

Hmmm… Mine (Windows) is sitting at about 400MB.

@jarcane Have you changed your memory limit, it could be that the garbage collection has not been done because you have a very high memory limit.

512mb atm

Because I’ve had it complain about 256mb

Can you try (collect-garbage 'major)
in the repl.

that gets it back down to the 700 mark it was at on a plain empty Racket window

Hmm….Can’t think of much else it could be (unless you have something massive loaded in the repl, or some background threads)

I should probably turn off some of the tool modules at least

Shouldn’t be any background threads, but it is a big pile of nested macros, so could there be perf issues with the macro expansion?

Maybe..Not my area I’m afraid, but it could be. You might get a more useful answer later when the others come on line.

@jarcane You could try (dump-memory-stats)
, that might point to where the extra is going.

ooh, that crashed DrRacket. XD

That’s something.

Whoops, shouldn’t do that.

@jarcane Are you using vanilla DrRacket or a ‘special’ version?

I’m on Racket CS on my win machine now

but the slow performance happened on my vanilla macOS install too

Ok.. I haven’t tried the CS version yet, I’m out of ideas. I hope someone else can help.