Skip to content

Conversation

@vbrodsky
Copy link
Contributor

@vbrodsky vbrodsky commented Apr 28, 2023

Story: https://labelbox.atlassian.net/browse/AL-5458

This is the first step in replacing ndjson library with our own. This PR adds a new module that has exactly the same methods as we use in ndjson library BUT we implement them ourselves using Python json parser.

The is the same as ndjson uses, so the end result is very similar in terms of parsing and performance. I have added tests, where I generated expected results using the ndjson library

@vbrodsky vbrodsky force-pushed the VB/ndjson-to-jsonlines_AL-5458 branch 2 times, most recently from 0ef110d to f9e8376 Compare April 28, 2023 18:08
@vbrodsky vbrodsky force-pushed the VB/ndjson-to-jsonlines_AL-5458 branch 2 times, most recently from d3e7a70 to 48915e9 Compare May 1, 2023 21:16
@vbrodsky vbrodsky force-pushed the VB/ndjson-to-jsonlines_AL-5458 branch from 48915e9 to 250fe87 Compare May 9, 2023 20:54
@vbrodsky vbrodsky changed the title Vb/ndjson to jsonlines al 5458 AL-5458 Add our own library to use Python json parser to parse ndjson May 11, 2023
@vbrodsky vbrodsky changed the title AL-5458 Add our own library to use Python json parser to parse ndjson [AL-5458] Add our own library to use Python json parser to parse ndjson May 11, 2023
@vbrodsky vbrodsky force-pushed the VB/ndjson-to-jsonlines_AL-5458 branch 9 times, most recently from 4717e26 to 398f8b1 Compare May 11, 2023 16:58
@vbrodsky vbrodsky force-pushed the VB/ndjson-to-jsonlines_AL-5458 branch from 398f8b1 to f5d2b38 Compare May 11, 2023 17:00
@vbrodsky vbrodsky requested a review from kkim-labelbox May 11, 2023 17:00
Copy link
Contributor

@gszpak gszpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vbrodsky vbrodsky merged commit 3b5e5ad into develop May 11, 2023
@vbrodsky vbrodsky deleted the VB/ndjson-to-jsonlines_AL-5458 branch May 11, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants