Comments (3)
@piroor, I just wanted to make sure you saw this one. Still has the "needs-triage" tag.
from treestyletab.
Thank you for detailed investigation! I agree that the current mechanism can trigger too many function calls to update tree indentation. Such needless calls needs to be reduced.
My concern about the PR #3384 is: it will introduce a regression around some situations like tree collapsion/expansion. With the present version, you'll see shallowly indented tree without delay when you expand a deeply nested tree. But with the change you proposed, you'll see "very deeply indented tree" at first and it will be updated to "shallowly indented tree" with a delay. (TST automatically adjusts indent width of tree based on currently visible tree at all time.) I'm afraid that such a visual flicking may stress people suffered from an epileptic seizure - we need to remind that the disabled animation mode is used by no only performance oriented people but handicapped people also.
Anyway the performance issue you mentioned is really serious with large number tabs. As a compromise, I've introduced a change. The main idea is based on your PR but there is a difference: the delayed update is activated only when the function is called over 10 times at a time. I hope the change helps you.
from treestyletab.
After more experiments, now TST updates max indent of collapsed/expanded tree with less function call and without delay. Of course the threshold mechanism is also still available and it should be effective for other cases like reported here - it is mostly equivalent to your PR. Thanks to mention about this performance issue I missed!
from treestyletab.
Related Issues (20)
- [Bug] No longer able to prevent automatic tree expand / collapse? HOT 6
- [Bug] Previously visited website's favicon is reused unexpectedly HOT 3
- [Bug] TST stuck loading indefinitely HOT 23
- [Bug] "High Contrast" Theme renders without tab button borders in 4.0.10 HOT 4
- TST doesn't remember tabs created by extensions like Stylish HOT 2
- [Bug] changing --tab-size breaks tab drag HOT 3
- [Bug]new tabs that inherit a container load then get blanked immediately HOT 4
- [Bug] Drag and drop parent-child / subtree broken on 4.0.11 HOT 2
- [Bug] Recent update shows booksmark manager, not tabs HOT 2
- [Bug] Move to New Window button causes all tab bars to reload twice after the new window opens HOT 10
- "Scroll Lock" does not work (How to disable automatic scrolling of tab column when manually closing second-to-last tab?) HOT 5
- [Bug] photon sidebar backround is too light on linux HOT 6
- New version 4.0.12 changed some of the styling HOT 9
- "Open new blank tab as" setting is ignored HOT 4
- new tab from non-existing tab HOT 1
- [Bug] "Undefined" entries at bottom of sidebar HOT 2
- [Bug] Switches tabs with certain sequences of keypresses/mouse clicks
- [Bug] TST Tab Search extension no longer works correctly with TST HOT 6
- [Bug] Drag and droping outside of sidebar not working when maximised HOT 1
- [Enhancement] toggle expand/collapse function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treestyletab.