Skip to content

Feat: Clean up go input streams to be a little more efficient#4233

Merged
parrt merged 2 commits intoantlr:devfrom
jimidle:feature/ioreader
Apr 18, 2023
Merged

Feat: Clean up go input streams to be a little more efficient#4233
parrt merged 2 commits intoantlr:devfrom
jimidle:feature/ioreader

Conversation

@jimidle
Copy link
Collaborator

@jimidle jimidle commented Apr 17, 2023

feat: Clean up input streams

  • The input streams were inefficient, making more copies of the incoming data than they needed to.
  • Add new Go idiomatic IO stream, though this cannot be open-ended such as a socket, it is easier for go programmers
    in certain situations.

jimidle added 2 commits April 17, 2023 10:48
  - FileStream reader was reading in to bytes, then converting to string, then converting to runes
  - Created a stream that can initialize directly from an io.Reader, which is more idiomatic go
  - Cleaned up InputStream creation

Signed-off-by: Jim.Idle <jimi@idle.ws>
Signed-off-by: Jim.Idle <jimi@idle.ws>
@jimidle
Copy link
Collaborator Author

jimidle commented Apr 18, 2023

@parrt Would you merge please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants