Reducing the styleRefresh when many (edit-) Tiddlers are open #8102
Replies: 7 comments 6 replies
-
@BurningTreeC ... Does the version you link to in your post implement the "optimized" changes. In some experiments a long time ago, I found out the "sticky titles" are suboptimal for styleRefresh -- I do not use them, so I did not dig deeper. Can you check that? |
Beta Was this translation helpful? Give feedback.
-
If I do disable the TiddlyFlex plugin, the styleRefresh goes down from ~60ms to 6ms-10ms even if layout is "default" As soon as TiddlyFlex is installed, it uses much more time in styleRefresh. Also mainRefresh goes down to about 23-39ms |
Beta Was this translation helpful? Give feedback.
-
I think it's the $:/plugins/BTC/TiddlyFlex/styles/z-indexes tiddler. First of all, If I do change your I'm not sure, if your styles still work in TiddlyFlex. So more experiments needed. Edit: --No they don't work. So the procedures have to be rewritten to do v5.3.x |
Beta Was this translation helpful? Give feedback.
-
There seems to be a problem in edit mode |
Beta Was this translation helpful? Give feedback.
-
The following code seems to work, but I do not understand the nth-child thing.
This seems to work for me too but I may be missing something
|
Beta Was this translation helpful? Give feedback.
-
There is one more problem. Since TiddlyFlex is a plugin, all the $:/tags/Stylesheet definitions bleed into the default styles. IMO it would be better, to make it a Theme instead of a plugin. Themes are deactivated (removed) if they are switched. -> Just a thought |
Beta Was this translation helpful? Give feedback.
-
Hi @pmario I now made all \define macros in my stylesheets \procedure |
Beta Was this translation helpful? Give feedback.
-
Hello,
In my TiddlyFlex experiments I found out, that I can reduce the
styleRefresh
from 40ms to 20ms by caching theEditTemplates
in global procedures. I opened 65 tiddlers for editing in a TiddlyFlex setting with the standardEditTemplates
and the same in a TiddlyFlex setting with modifiedEditTemplates
. I enabled the "dynanode" functionality which blocks refreshing children of it while a resize "animation" is ongoing. Then I dragged the sidebar-resizer and observed the performance logs in the console. ThestyleRefresh
goes from around 40ms to around 20ms.Now I believe we should cache globally whatever we can. EditTemplates, ViewTemplates, segments, other templates like Button templates or ListItemTemplates.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions