Skip to content

[lldb] Update JSONTransport to use MainLoop #146576

Open
@ashgti

Description

@ashgti

At the moment, JSONTransport is fairly abstract to how its reading/writing.

To support both pipes (e.g. stdin) and sockets, we should update

to perform reads using the RunLoop.

With that, we should also be able to read in larger chunks and use a buffer for tracking partial messages. At the moment, our Read logic ends up reading 1 char at a time to try to find delimiters. This should improve the performance of reading for JSONTransport.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions