vlaaad / reveal

Read Eval Visualize Loop for Clojure
https://vlaaad.github.io/reveal/
MIT License
597 stars 21 forks source link

Memory leak? #17

Open mjmeintjes opened 3 years ago

mjmeintjes commented 3 years ago

I've been using reveal pretty extensively and it works very well.

However, I have been experiencing lots of OutOfMemory exceptions, and I wonder whether reveal is the cause.

Is there some sort of limit on the number of history items to store? If not, it would be useful to be able to set a limit on the amount of entries to keep in memory (like a ring buffer). Is this something that would be possible?

vlaaad commented 3 years ago

Reveal can be the cause, yes — it saves references to all submitted values for inspection. I'm planning to add the ability to clear the output panel, so those refs can be garbage collected

vlaaad commented 3 years ago

Released 1.1.171 that adds Ctrl L as a shortcut for clearing the output panel. It uses Ctrl (instead of ) on Mac too for consistency.