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

Consider automatic trim and subset in server so reader codes can be simple #3

Open
jbfaden opened this issue Nov 22, 2021 · 1 comment

Comments

@jbfaden
Copy link
Collaborator

jbfaden commented Nov 22, 2021

The python server should consider checking the timetags returned by the reader to see if trimming is needed. This would simply double-check that each timetag returned by the reader is after or equal to the request beginning, and before the request end. Similarly, the reader code could just return all the columns, and when the reader response is containing all columns, and not the subset of columns, then the server will also subset the response. This would allow "cat datafile.dat" to be valid reader.

@jbfaden
Copy link
Collaborator Author

jbfaden commented Nov 22, 2021

It also occurred to me that this might be implemented with a native code, if Python is too slow. This would also be useful for other servers which read the output of a process.

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