-
Notifications
You must be signed in to change notification settings - Fork 9
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
The output seems slow to me. Am I doing something wrong? #9
Comments
Hey @aborruso , that does seem odd - can you run the following script as a file called .bail on
.timer on
.load ./lines0
select lines_debug();
select count(*) from lines_read('calendar.ndjson'); And then run it with
It runs in ~100ms for me on a digital ocean droplet with 8gb of RAM. |
Thank you @asg017 This is the result
|
I use the |
Woah, that's pretty wild to see... Could you try compiling the library yourself and see if that changes anything? It should be straightforward to do, no external deps
I'm guessing the pre-compiled library might be way slower for some reason, and possibly compiling yourself may fix it? Weird how it only seems to get tripped up on |
Hi,
I'm using
lines0.so v0.1.1
.If I run this command on this input csv file
I have the output in 0.229 seconds.
If I apply the same to your example ndjson file
I have the output in 51.493 seconds. Probably I'm doing something wrong.
Using wc
<calendar.ndjson wc -l
I have the output in 1.053 seconds.Thank you
The text was updated successfully, but these errors were encountered: