Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Dec 20, 2024
1 parent b763106 commit cad26dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opteryx/utils/file_decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,10 @@ def jsonl_decoder(
if not isinstance(buffer, bytes):
buffer = buffer.read()

parser = simdjson.Parser()

for line in buffer.split(b"\n"):
if not line:
continue
dict_line = parser.parse(line)
dict_line = simdjson.Parser().parse(line)
rows.append(
{k: orjson.dumps(v) if isinstance(v, dict) else v for k, v in dict_line.items()}
)
Expand Down

0 comments on commit cad26dc

Please sign in to comment.