Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the stack overflow issue from Const.Randomized #54

Merged
merged 5 commits into from
Oct 13, 2021
Merged

Conversation

wasowski
Copy link
Member

Notes are kept in issue #53

- The bug with const was that it should give a singleton
- The singleton (finite streams) have exposed a bug in toGen
  (that now might need to work with a finite stream)
- This also exposed the memory leak more clearly, which *might* be
  related to conversion of Java Streams to scala streams in a not stack
  friendly manner.

This allowed me to handle 300K episodes for SimpleMaze.

Likely avoiding flatMap in agent implementations might help as well.
This bug was introduced in this PR (when we switched to unfold), so we
want to fix it on spot.
The bump to 400K was committed by mistake
@wasowski wasowski merged commit f604c44 into main Oct 13, 2021
@wasowski wasowski deleted the stacksafe branch October 13, 2021 06:58
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.

1 participant