Skip to content

Commit

Permalink
adjust chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Sep 17, 2024
1 parent b02e711 commit 4e8fca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/generate_spec_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# convert to cpp string
print(f'Generating file {header_file} - {s["source"]}')
json_str = json.dumps(spec, separators=(',', ':'))
chunk_size = 16640 # Adjust the chunk size as needed
chunk_size = 16000 # Adjust the chunk size as needed
if len(json_str) > chunk_size:
# Split string into chunks if needed
chunks = [json_str[i:i + chunk_size] for i in range(0, len(json_str), chunk_size)]
Expand Down
Loading

0 comments on commit 4e8fca7

Please sign in to comment.