Skip to content

Conversation

@themoenen
Copy link
Collaborator

Reworked readline history to fix a memory leak. This was due to readline.read_history_file() causing the entire history to be appended instead of overwriting the in-memoru history. Then, certain conditions would cause the history to be doubled with every command, leading to memory overload.

Copy link
Collaborator

@brian316 brian316 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"",
return_val=False,
)
if num_results < 4 or GLOBAL_SETTINGS["display"] == "api"::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@themoenen added this fix. not sure how this got passed by. can you test?

Signed-off-by: Brian Duenas <brian.duenas@ibm.com>
@brian316 brian316 merged commit 0bfc611 into main May 29, 2025
2 checks passed
@brian316 brian316 deleted the hist_fix_moe branch May 29, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants