jarcane
2019-8-12 08:55:46

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?


jarcane
2019-8-12 08:56:09

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


mark.warren
2019-8-12 09:01:03

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


jarcane
2019-8-12 09:01:49

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


jarcane
2019-8-12 09:04:06

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


mark.warren
2019-8-12 09:04:46

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


mark.warren
2019-8-12 09:06:35

@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.


jarcane
2019-8-12 09:06:52

512mb atm


jarcane
2019-8-12 09:07:06

Because I’ve had it complain about 256mb


mark.warren
2019-8-12 09:08:39

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


jarcane
2019-8-12 09:09:23

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


mark.warren
2019-8-12 09:11:57

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


jarcane
2019-8-12 09:12:25

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


jarcane
2019-8-12 09:13:04

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?


mark.warren
2019-8-12 09:14:24

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.


mark.warren
2019-8-12 09:17:17

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


jarcane
2019-8-12 09:17:46

ooh, that crashed DrRacket. XD


jarcane
2019-8-12 09:17:49

That’s something.


mark.warren
2019-8-12 09:18:14

Whoops, shouldn’t do that.


mark.warren
2019-8-12 09:20:41

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


jarcane
2019-8-12 09:30:26

I’m on Racket CS on my win machine now


jarcane
2019-8-12 09:30:42

but the slow performance happened on my vanilla macOS install too


mark.warren
2019-8-12 09:35:39

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