Replies: 4 comments 2 replies
-
I did have a look, when the FieldIndexer actually is used. As far as I can see, it is only used once by the IMO we should start to use it instead of making it faster. So basically if you hardcode eg: IMO real world would be eg: |
Beta Was this translation helpful? Give feedback.
-
eg: My tocP does this to "find all tiddlers, where the
IMO it should be something similar to
Which imo would significantly speed up the whole thing, because the initial filter-run @Jermolene ... Would it make sense to extend the |
Beta Was this translation helpful? Give feedback.
-
There may be a other Filter Operators that could be improved. We would have to have a look, which one of them also deals with fields as their primary parameter. I've long lost the overview, due to the amount (166) of operators we have atm, that do similar things. :/ |
Beta Was this translation helpful? Give feedback.
-
I read the code of https://github.com/hmans/miniplex (less than 1000 loc) I find ECS is like:
So TW's filter expression is already simillar to ECS. Only difference is ECS will cache result of each query. This works when there are many same query. But we probably don't have many same filter expressions, so caching is useless. So I'm moving my attention to: |
Beta Was this translation helpful? Give feedback.
-
Entity component system with archetype Can filter entity with very fast speed.
And those components are similar to tiddler fields, so maybe we can apply this (only to the indexer is sufficient) . This may also improve filters like tag filter.
I learned about this time ago. Just happen to think about this after dinner, may add more details later.
Beta Was this translation helpful? Give feedback.
All reactions