Skip to content

Commit 64ab3fc

Browse files
committed
Disable pretty on FileSystemSink due performance reasons
1 parent b2bbaee commit 64ab3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stix2/datastore/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def _check_path_and_write(self, stix_obj, encoding='utf-8'):
585585
raise DataSourceError("Attempted to overwrite file (!) at: {}".format(file_path))
586586

587587
with io.open(file_path, mode='w', encoding=encoding) as f:
588-
fp_serialize(stix_obj, f, pretty=True, encoding=encoding, ensure_ascii=False)
588+
fp_serialize(stix_obj, f, pretty=False, encoding=encoding, ensure_ascii=False)
589589

590590
def add(self, stix_data=None, version=None):
591591
"""Add STIX objects to file directory.

0 commit comments

Comments
 (0)