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

启发式避免更新 #85

Open
linonetwo opened this issue Jun 14, 2023 · 2 comments
Open

启发式避免更新 #85

linonetwo opened this issue Jun 14, 2023 · 2 comments

Comments

@linonetwo
Copy link
Contributor

启发式就是写死的拍脑子想到的方法的意思。

我今天想到,在 tiddlerChanges 里,对于传来的变化了的条目,可以缓存前五次的最终结果,如果有的条目一直没导致实际变化,就把它记录为无关,之后就忽视来自它的变化

修复 tiddly-gittly/tiddlywiki-calendar#39

@Gk0Wk
Copy link
Collaborator

Gk0Wk commented Sep 21, 2023

用空间换时间了,好像内存用多个有点多

@oeyoews
Copy link

oeyoews commented Sep 21, 2023

可以监听对应filter的条目数量是否发生变换决定是否更新, 然后更新条目数量, 不知道能不能满足大多数情况下的刷新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants