-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stream QueryResult contents in query --output=proto
Emits targets as they arrive instead of accumulating them in a QueryResult. Based on some simple benchmarks this speeds up end-to-end query time by up to 7%. This should also help with genquery, especially those with large results. Internally this is implemented by using knowledge of the proto serialization format and the simplicity of QueryResult to skip the intermediate QueryResult.Builder and QueryResult. On one hand this can be a somewhat questionable blurring of abstraction layers, but on the other QueryResult's simplicity and all of our test coverage for it makes it a safe, fair tradeoff. PiperOrigin-RevId: 259603992
- Loading branch information
1 parent
60d4865
commit 68d2181
Showing
2 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters