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

optimizing jj -l @this #31

Open
pkoppstein opened this issue Dec 23, 2022 · 0 comments
Open

optimizing jj -l @this #31

pkoppstein opened this issue Dec 23, 2022 · 0 comments

Comments

@pkoppstein
Copy link

I've successfully used jj to "splat" a very large top-level by running:

jj -l @this

This is very fast but consumes a large amount of memory: for my 1GB file, it requires 5GB RAM, even though each top-level array item is very small.

I was wondering whether there is another way to "splat" a top-level array that would (ignoring overhead) essentially require only as much memory as the largest item in the array, while still being reasonably fast.

If not, could the presence of the -l flag be taken into account when optimizing the use of memory?

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