Skip to content

Commit 936bb01

Browse files
committed
formatting and use default compression
1 parent 13e4070 commit 936bb01

File tree

10 files changed

+13
-19
lines changed

10 files changed

+13
-19
lines changed

mabel/data/readers/internals/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cursor is made of three parts:
55
- map : a bit array representing all of the blobs in the set - unread blobs
6-
are 0s and read blobs are 1s. This allows for blobs to be read in
6+
are 0s and read blobs are 1s. This allows for blobs to be read in
77
an arbitrary order - although currently only implemented linearly.
88
- partition: the active parition (blob) that is being read
99
- location : the record in the active partition (blob), so we can resume reading

mabel/data/readers/internals/threaded_wrapper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
3-
"""
1+
""" """
42

53
import logging
64
import threading

mabel/data/validator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def schema_loader(
14-
definition: Union[str, List[Dict[str, Any]], dict, RelationSchema, bool]
14+
definition: Union[str, List[Dict[str, Any]], dict, RelationSchema, bool],
1515
) -> Union[RelationSchema, bool]:
1616
if definition is None:
1717
raise ValueError(

mabel/data/writers/internals/blob_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def commit(self):
165165
pytable = self._normalize_arrow_schema(pytable, self.schema)
166166

167167
tempfile = io.BytesIO()
168-
pyarrow.parquet.write_table(pytable, where=tempfile, compression="zstd")
168+
pyarrow.parquet.write_table(pytable, where=tempfile)
169169

170170
tempfile.seek(0)
171171
write_buffer = tempfile.read()

mabel/utils/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def parse_delta(delta: str) -> datetime.timedelta:
4141

4242

4343
def parse_iso(
44-
value: Union[str, int, float, datetime.datetime, datetime.date]
44+
value: Union[str, int, float, datetime.datetime, datetime.date],
4545
) -> Optional[datetime.datetime]:
4646
"""
4747
Parses an ISO date string into a datetime object, with an emphasis on speed.

mabel/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Store the version here so:
22
# 1) we don't load dependencies by storing it in __init__.py
33
# 2) we can import it in setup.py for the same reason
4-
__version__ = "0.6.24"
4+
__version__ = "0.6.25"
55

66
# nodoc - don't add to the documentation wiki

tests/performance/index_performance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
22
Results (seconds to search for a username in 65,500 rows):
33
4-
indexed | row exists | time
4+
indexed | row exists | time
55
-------------------------------
66
yes | yes | 0.094 <- about 3.5x faster when is match
77
yes | no | 0.006 <- over 50x faster when no match
8-
no | yes | 0.357
8+
no | yes | 0.357
99
no | no | 0.332
1010
-------------------------------
1111
"""

tests/performance/indexing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
3-
"""
1+
""" """
42

53
import sys
64
import os

tests/performance/json_performance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
2-
JSON parsing and serialization performance tests so a decision on
2+
JSON parsing and serialization performance tests so a decision on
33
which library(s) to use can be made - previously the selection was
44
inconsistent.
55
66
Results (seconds to process 10m rows):
77
8-
library | parsing | serialize
8+
library | parsing | serialize
99
-------------------------------
10-
json | 36.6 | 1.74
10+
json | 36.6 | 1.74
1111
ujson | 16.5 | 0.86
1212
orjson | 10.4 | 0.66 <- lower is better
1313
simd | 2.8 | N/A <- lower is better

tests/test_utils_common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
3-
"""
1+
""" """
42

53
import os
64
import sys

0 commit comments

Comments
 (0)