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

Loader cycles on large input #251

Open
Totktonada opened this issue Jul 29, 2022 · 1 comment
Open

Loader cycles on large input #251

Totktonada opened this issue Jul 29, 2022 · 1 comment

Comments

@Totktonada
Copy link

How to reproduce:

$ cmake .
$ make
$ yes '{' | head -n 1048576 | tr -d '\n' > x.yaml
$ ./run-loader x.yaml

I don't know, but maybe it is the same problem as one found by fuzzing in #227.

@Totktonada
Copy link
Author

Maybe it is just very slow. I run it on 100K file instead of 1M one:

$ yes '{' | head -n 102400 | tr -d '\n' > 100k.yaml
$ time ./run-loader 100k.yaml 
[1] Loading '100k.yaml': FAILURE (0 documents)

real	0m58.257s
user	0m58.215s
sys	0m0.028s

Approx. 1750 symbols per second (for this particular case with deep nesting, of course).

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

No branches or pull requests

1 participant