-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improve Loading Performance #11
base: master
Are you sure you want to change the base?
Conversation
This reverts commit cdc7d35.
Issue caused by calling getChildNodes on the root MindmapNode, and then immediately again from the UI thread, thus resulting in two separate list of child nodes on the root node. caching needs to be synchronized
This reverts commit 2337bca.
…n Android" This reverts commit 8f117ac.
…r work on Android"" This reverts commit 8e412bb.
…escription" This reverts commit 7520202.
…, neither work on Android""" This reverts commit 39b4cd7.
loads document as we go, expanding the mindmap not loading icons, links, etc. yet
app/src/main/java/ch/benediktkoeppel/code/droidplane/MainActivity.java app/src/main/java/ch/benediktkoeppel/code/droidplane/MindmapNode.java app/src/main/java/ch/benediktkoeppel/code/droidplane/view/HorizontalMindmapView.java app/src/main/java/ch/benediktkoeppel/code/droidplane/view/MindmapNodeLayout.java app/src/main/java/ch/benediktkoeppel/code/droidplane/view/NodeColumn.java
@Tibi: if you're curious, here's what I've been working on on Droidplane recently. Do you want to give this a test and see if you find any issues? I have two 40-60 MB mindmap files (with 230k resp 370k nodes). Loading that in Droidplane always took >30 seconds. With the streaming XML approach, I immediately open the files, get to browse the first branches of the mindmap (where I have most recent / most used information), while the rest of the mindmap keeps loading in the background). I've been using this branch for a few months now and been pretty happy with it. I would appreciate if you give it a spin and see if you find new issues. Known issue: I've merged your search feature into here, and at the moment search breaks while the mindmap is still loading. I'll try to fix that later. |
Hi Benedikt, I can test the branch for regressions, but I don't have such huge maps. Cheers! |
Hallo Benedikt, I could test a bit and found nothing but as I said my maps are not huge. I also couldn't find some big maps online to test with. |
Ah no, I was testing with the wrong version! When I try to open my main map with this branch I get this:
|
Thanks for reporting this - not good indeed. Do you have an example file you can share with me that triggers the behavior? |
I guess it must be a file created with an older version of FreePlane because creating a new one and just putting a non-breaking space in a node's note works, it gets written as |
Thanks for the test files, interesting... My understanding is that |
For big mindmaps, parsing the whole XML takes a while. I have replaced it by a stream parser, and progressively load the mindmap. As a result, Droidplane immediately after open starts showing nodes (the first ones in the XML file), and keeps on adding more nodes as the XML is parsed.