perf: Reduce the impact of 'QueryRenderChild.isFilenameUnique()' on rendering speed #2735
Labels
scope: performance issues
Issues with speed or responsiveness
type: internal
Only regards development or contributing
Description
In a vault with 6,700 markdown files, I found that the call on
QueryRenderChild.isFilenameUnique()
for every task that is rendered in search results was taking nearly as long as the actual rendering:Required Steps
I'm thinking of make
Task
storeTasksFile
- and then having all tasks from the same file store the sameTasksFile
object.That way,
TasksFile
can efficiently store whether the filename is unique and cache the results.This is also a necessary step on the way to efficiently providing access to file properties/YAML/frontmatter to searches.
How to Test
No response
The text was updated successfully, but these errors were encountered: