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

Hitting OOM with a relatively big result, hiding it doesn't help #733

Open
a1exsh opened this issue Dec 1, 2024 · 0 comments
Open

Hitting OOM with a relatively big result, hiding it doesn't help #733

a1exsh opened this issue Dec 1, 2024 · 0 comments

Comments

@a1exsh
Copy link

a1exsh commented Dec 1, 2024

One of my solutions to an earlier Advent of Code has stopped working at some point and is now running into an OutOfMemoryError while rendering what I would call "a slightly bigger than regular" result: https://github.com/a1exsh/advent-of-clerk/blob/41465089afd07c1576e87be0ebec449e7342c8cb/src/advent_of_clerk/year_2022/day_12.clj#L140-L144

I tried to work around it by using the visibility metadata annotation of ^{::clerk/visibility {:result :hide}}, but that doesn't seem to make any difference — it's still OOM-ing.

What did help, paradoxically, is trying to time it (seems to have the same effect as wrapping the form in a do block): https://github.com/a1exsh/advent-of-clerk/blob/eac71db3fac08305b5597e48445b382377fe78e8/src/advent_of_clerk/year_2022/day_12.clj#L144-L153

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

No branches or pull requests

1 participant