Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
614 stars 102 forks source link

`renderHeatmapCalendar` is laggy for a vault stored in iCloud #117

Open pedromzadeh opened 3 months ago

pedromzadeh commented 3 months ago

For two identical vaults, one stored locally On My iPad and one stored on the iCloud Drive, the function call renderHeatmapCalendar experiences a significant lag for the vault stored on iCloud. Specifically, the file lags when switching between reading and source modes in Obsidian and experiences lags when editing the file in source mode. Here's a video: https://imgur.com/a/yhaDYbt. This lag does not exist for the same vault stored locally.

Commenting out renderHeatmapCalendar gets rid of the lag. This indicates that the Dataview queries running on iCloud files aren't the problem. Instead, whatever renderHeatmapCalendar does under the hood becomes laggy when operating on iCloud files.