-
Notifications
You must be signed in to change notification settings - Fork 32
Using with large json inputs is painfully slow #11
Comments
Yes, that would be a good idea. Unfortunately I don't understand the UI of this thing, I just forked it and changed the json filtering engine to use jq. A PR would be very welcomed. |
How bout swapping out the exec bit for a pure Go implementation of jq |
I was thinking of doing that, but I don't think it will improve things by a lot. https://github.com/fiatjaf/jqview uses that and it's painfully slow for big JSON files anyway. Apparently gojq is much slower than raw jq. I think separating the UI from the JSON processing and also adding some form of debounced typing would improve things more here. Meanwhile it continues serving as a tool for small and medium JSON analysis only. |
I have a json file about 10M. |
Yes, it is possible, but I don't know how to do it because everything revolves around this TUI library I inherited from jid and don't know how to use. |
At a minimum, debouncing should resolve a lot of the pain. :) |
The entire application is slowed by large inputs. I am working with a 6mb json file, and each keystroke takes about 500ms to register. I could understand not outputting the results in real-time, but I would suggest separating the UI from the data gathering portions (use a separate UI rendering goroutine)...
The text was updated successfully, but these errors were encountered: