Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: performance issues with subscriber client (#232)
The primary change here is to access the raw proto in as many places as possible due to proto-plus-python performance issues. The secondary change is to reduce the asyncio overhead by propagating batches through more layers of code.
- Loading branch information
1 parent
2bb209c
commit 78a47b2
Showing
18 changed files
with
280 additions
and
202 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
A fast serialization method for lists of integers. | ||
""" | ||
|
||
from typing import List | ||
|
||
|
||
def dump(data: List[int]) -> str: | ||
return ",".join(str(x) for x in data) | ||
|
||
|
||
def load(source: str) -> List[int]: | ||
return [int(x) for x in source.split(",")] |
Oops, something went wrong.