gix bug in benchmark test.
This commit is contained in:
parent
a1efecd0e5
commit
30ec25cb91
@ -1 +1 @@
|
|||||||
Subproject commit 67363910e579b85dcde855554c077d8adaeff59f
|
Subproject commit 7b40de3fe9c1011d7b47ca1fd3a24214e54cf6cd
|
@ -27,14 +27,12 @@ def stream_text_by_article_streaming(file_path: str) -> Generator[Tuple[Any, Lis
|
|||||||
print(f"An error occurred: {e}")
|
print(f"An error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
last_text = ""
|
|
||||||
last_article_id = None
|
|
||||||
|
|
||||||
|
|
||||||
with open('/dev/null', 'w') as of:
|
with open('/dev/null', 'w') as of:
|
||||||
for article_id, text in stream_text_by_article_streaming(sys.argv[1]):
|
for _, texts in stream_text_by_article_streaming(sys.argv[1]):
|
||||||
if article_id != last_article_id:
|
|
||||||
last_article_id = article_id
|
|
||||||
last_text = ""
|
last_text = ""
|
||||||
|
for text in texts:
|
||||||
result = differ.inline_json_diff(last_text, text)
|
result = differ.inline_json_diff(last_text, text)
|
||||||
print(result, file=of)
|
print(result, file=of)
|
||||||
|
last_text = text
|
||||||
|
Loading…
Reference in New Issue
Block a user