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

Treeview is slow #5

Open
WelliSolutions opened this issue Aug 19, 2018 · 0 comments
Open

Treeview is slow #5

WelliSolutions opened this issue Aug 19, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@WelliSolutions
Copy link
Owner

Thanks for the help regarding the crash. I managed to load the file now.

It's really slow to show the Treeview after load, and really slow when expanding the property that has an array of 423,828 rows.

I'm loading an Azure Table storage export, which Microsoft abused JSON to store CSV...

{"odata.metadata":"https://somewhere.table.core.windows.net/$metadata#Session",
"value":[{"PartitionKey":"0000000000000000002;0635671009200000000",
"RowKey":"m2VEe09a9TaVpVrYrQPTYO01CvqnKWrA_FiJlLaWc9Y1",
"Timestamp":"2015-05-25T16:58:46.8435944Z",
"[email protected]":"Edm.DateTime",
"SessionStartUtc":"2015-05-13T08:02:41.0000000Z"

Suspect the problem is with the TreeView which don't seem to be optimized. Committed memory is at 1,698 MB.

Are you using Virtual Mode for the TreeView?

To reduce memory usage, would it be possible to save the structure of the JSON in memory and load the actual data when it's opened? My file might be represented in this structure

{ Type: object, Offset: 0, Properties: [
    { /*odata.metadata*/Type: string, Offset: 1 }, 
    { /*value*/Type: array, Offset: 79, 
        Children: [ { Type: object, Offset: 88, Properties: [ { /*PartitionKey*/Type: string, Offset: 89 }, ...... ] } ] 
    }
]

Regards,
Li Huan

@WelliSolutions WelliSolutions added bug Something isn't working help wanted Extra attention is needed labels Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant