Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft -- make parse_insert() more than 2x as fast #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gatoatigrado
Copy link

sorry this is benchmarked on some private data ... using a simple script to dump to JSON,

gato:~/sandbox/insert-parser-comparison> time python parse.py 10x | md5sum
846d416e653c08b3f1914d4f53f573e9 -
python parse.py 10x 1.97s user 0.33s system 99% cpu 2.309 total
md5sum 0.03s user 0.01s system 1% cpu 2.309 total

gato:~/sandbox/insert-parser-comparison> time python parse.py 10x | md5sum
846d416e653c08b3f1914d4f53f573e9 -
python parse.py 10x 1.01s user 0.04s system 99% cpu 1.064 total
md5sum 0.03s user 0.01s system 3% cpu 1.063 total

I'll try to productionize it at some point. I didn't test with complete=False and stuff.

sorry this is benchmarked on some private data ... using a simple script to dump to JSON,

gato:~/sandbox/insert-parser-comparison> time python parse.py 10x | md5sum
846d416e653c08b3f1914d4f53f573e9  -
python parse.py 10x  1.97s user 0.33s system 99% cpu 2.309 total
md5sum  0.03s user 0.01s system 1% cpu 2.309 total

gato:~/sandbox/insert-parser-comparison> time python parse.py 10x | md5sum
846d416e653c08b3f1914d4f53f573e9  -
python parse.py 10x  1.01s user 0.04s system 99% cpu 1.064 total
md5sum  0.03s user 0.01s system 3% cpu 1.063 total

I'll try to productionize it at some point. I didn't test with complete=False and stuff.
@gatoatigrado
Copy link
Author

and ... the _group() trick doesn't work on linux, just mac ... def. another reason not to push this yet! :)

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.

1 participant