-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add progress indicator when loading large trees #11
Comments
I believe this is something that should be handled in |
Probably I understand source of the problem. Seems to be, inside @AlbertoPdRF, can you point me place in the code where access to ROOT file is provided? With normal HTTP progress bar appears and JavaScript VM in browser uses moderate amount of memory (~10MB) https://jsroot.gsi.de/latest/?file=https://jsroot.gsi.de/files/tmp/large.root&item=ntuple;133/px |
I'm not entirely sure where to point you. Do you mean this line? Or this function? The first is when I think that the file is actually being read, but I don't know if it's loaded in memory or something before. The second is the function VS Code calls with a file uri for our extension to return a new CustomDocument for that resource, but in our case everything that should happen at this point is that the uri gets saved for later usage. |
Yes, this is exactly I was asking for. And most probably here partial reading is not works. The only solution would be: https://code.visualstudio.com/api/extension-guides/webview#scripts-and-message-passing I can add support for arbitrary I/O proxy to JSROOT. |
If you think that could work, I'm down for it! |
I trying to use your extension from local disk, but somehow fail. |
From the base folder of the extension, in a terminal:
Once VS Code opens:
I believe it should be enough with that, let me know if you have any problems! |
Now I got it! Can you check how node modules can be used inside? |
Finally PR #20 is working with large files. |
Is there any progress on the issue? |
Hey @AlbertoPdRF, no problem! Thanks for the reply and good luck with your PhD! :) If you find the time, the larger problem for our team currently seems to be #3 (bright text on white tabs). |
It would be very helpful to show a progress indicator while loading large trees, because sometimes loading apparently stalls and loading of large trees can take quite a while.
The text was updated successfully, but these errors were encountered: