Skip to content

Garbage collecting REPL bindings... #4331

Open
@scabug

Description

@scabug

= problem =
A lot of values that I compute are huge, and when done in the REPL, a
binding similar to:

val res3 =

is introduced by Scala. After a few of these bindings I run out of memory, and
have to start the REPL afresh.

Workarounds like always binding a var at the REPL and clearing it, or wrapping all REPL values with SoftReference are too annoying.

= analysis =

= enhancement recommendation =
Always bind top level values to some fixed identifier like "it", etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions