Skip to content

Conversation

@ltratt
Copy link
Contributor

@ltratt ltratt commented Dec 11, 2025

This previously cause an underflow, and then an out-of-memory error.

We could be more sophisticated than the approach below, but this is better than nothing.

This previously cause an underflow, and then an out-of-memory error.

We could be more sophisticated than the approach below, but this is
better than nothing.
// don't try hard.
print!("\r{lhs} {rhs}");
} else {
// If the terminal is a bit too narrow, chop the LHS down and retain all of the RHS.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is actually chopping the rhs off? i.e. the oldest iteration times seem to be kept.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's chopping the RHS of the LHS. We could be more clever here, but it would be diminishing returns.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, i see. Sorry, misunderstood the comment then.

This behaviour is fine.

@vext01 vext01 added this pull request to the merge queue Dec 11, 2025
Merged via the queue into ykjit:main with commit e0667e4 Dec 11, 2025
2 checks passed
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.

2 participants