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

Haystack slow on first hits #828

Closed
vemv opened this issue Nov 1, 2023 · 1 comment · Fixed by #829
Closed

Haystack slow on first hits #828

vemv opened this issue Nov 1, 2023 · 1 comment · Fixed by #829

Comments

@vemv
Copy link
Member

vemv commented Nov 1, 2023

I don't know exactly why, but the first time Haystack is used to analyze exceptions, it takes quite a few seconds. About 10 or so.

Later it becomes instantaneous.

It's long enough for one to believe it's not working.

Let's see if there's some low-hanging fruit. If not, probably performing related requires eaglerly would be a good compromise.

@vemv
Copy link
Member Author

vemv commented Nov 1, 2023

cider.nrepl.middleware.stacktrace> (try
                                     (/ 3 0)
                                     (catch Exception e
                                       (time (analyzer/analyze e))))
"Elapsed time: 12399.759643 msecs"

This happens even after requiringcider.nrepl.middleware.stacktrace / Haystack in advance.

Afterwards it's 30ms

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 a pull request may close this issue.

1 participant