#16500 closed defect (invalid)
Tree: expansion is extremely slow when TreeStoreModel.loadItem() calls newItem()
Reported by: | VictorWang | Owned by: | VictorWang |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Dojo Version: 1.8.2 Description: Steps to reproduce
- Download the attached file, open test_Tree.html in browser (firefox for example)
- Click to expand "Asia", firefox hangs for a while and unresponsive script warning pops up.
Attachments (2)
Change History (5)
Changed 10 years ago by
Attachment: | test_Tree.html added |
---|
Changed 10 years ago by
Attachment: | countries1.json added |
---|
comment:1 Changed 10 years ago by
Owner: | changed from bill to VictorWang |
---|---|
Status: | new → pending |
Summary: | dijit.Tree expansion is extremely slow → Tree: expansion is extremely slow when TreeStoreModel.loadItem() calls newItem() |
This looks very strange how your continentStore.loadItem() calls _store.newItem() 500 times. TreeStoreModel responds to every new item by requerying the list of children for that item's parent (see TreeStoreModel.onNewItem). So, you should stop calling _newItem() from loadItem().
Also, eventually you should stop using the deprecated TreeStoreModel and use ObjectStoreModel instead.
If you still have problems after that let us know.
comment:2 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
comment:3 Changed 9 years ago by
See #17282 for discussion/solution, assuming this is the same problem as listed there.
Put these 2 files in same directory