forked from trustification/trustification
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes TC-1179 Signed-off-by: Jim Crossley <[email protected]>
- Loading branch information
1 parent
9ddf983
commit 6dc8f13
Showing
8 changed files
with
132 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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,20 @@ | ||
import bz2 | ||
|
||
CHUNKS=int(1000000/2) | ||
CHUNKSIZE=100000 | ||
data = b'{' * CHUNKSIZE | ||
data2 = b'}' * CHUNKSIZE | ||
size = 0 | ||
|
||
with bz2.open('./bigjunk.bz2', 'wb') as f: | ||
for _ in range(CHUNKS): | ||
f.write(data) | ||
size += CHUNKSIZE | ||
|
||
f.write(b'"a":1"') | ||
|
||
for _ in range(CHUNKS): | ||
f.write(data2) | ||
size += CHUNKSIZE | ||
|
||
print(f'{size=}') |
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