dromse / obsidian-gamified-tasks

Gamify your task management with rewards system, craft your tasks by tags.
MIT License
29 stars 1 forks source link

[Feature]: Improve parsing on slow devices #18

Open dromse opened 3 months ago

dromse commented 3 months ago

What happened?

Long parsing from 1.1.0 on Android device

Steps to reproduce

Plugin Version

1.1.0

Obsidian Version

1.5.12

What platform are you seeing the problem on? (Can be multiple)

Android

Relevant log output

No response

Additional questions

dromse commented 3 months ago

I have several ideas to improve parsing speed:

dromse commented 3 months ago

I tested 1.1.0 on my laptop with 800MHz CPU frequency, parsing is okay. There are a hilarious observation, steps:

I have a suggestion that parsing starts to block callstack in eventloop and don't give enough oxygen to other plugins on start, but when every plugins are loaded, the plugin has enough resources for parsing. So I think I misunderstood this issue and it's not related to new version. Just didn't notice it before.

dromse commented 3 months ago

But I leave this issue open to comment adding some improvements to the plugin performance and meditations on this topic.

dromse commented 2 months ago

https://github.com/dromse/obsidian-grind-manager/blob/870a149503fa6a81831f43e942a93a62a9fa2f95/src/components/Tasks/TaskItem.tsx#L26

Found this line, maybe there are performance issues, I need to figure out does the plugin reparse history rows on every task item creation.