Skip to content

Conversation

dpeacock
Copy link
Contributor

@dpeacock dpeacock commented May 16, 2022

The DAP server doesn't use args and in some instances retrieving these is very slow. Extracted them into their own methods to prevent this form slowing down DAP requests as the data is not used.

@st0012
Copy link
Member

st0012 commented May 16, 2022

@dpeacock I don't think it fixes #635. It just excludes DAP users from the problem. But console users will still face it as far as I understand?

@dpeacock
Copy link
Contributor Author

@dpeacock I don't think it fixes #635. It just excludes DAP users from the problem. But console users will still face it as far as I understand?

Good call-out it just prevents the issue from happening for DAP clients. Console users will experience it, but at least can specific the depth of the stacktrace from the commandline which the DAP clients currently cannot do.

The DAP server doesn't use the args and in some instances retrieving these is very slow.  Instead make parameters_info public and have the thread_client call that directly.
@st0012
Copy link
Member

st0012 commented May 24, 2022

@dpeacock Thanks for the PR 🎉
@ko1 I think this one looks good and can be merged.

@st0012
Copy link
Member

st0012 commented Jun 24, 2022

@peterzhu2118 Could you give this a look? Thx

Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@peterzhu2118 peterzhu2118 merged commit ab2b8a2 into ruby:master Jun 24, 2022
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