jxq0 / org-tidy

🧹 An Emacs minor mode to automatically tidy org-mode property drawers
GNU General Public License v3.0
98 stars 7 forks source link

Performance with large buffers #20

Open acowley opened 7 months ago

acowley commented 7 months ago

I find the idea of org-tidy very appealing, and thank you for making it. A problem I've run into is that with a large org file (~60k lines), saving can take several (~7) seconds. I usually have that file in a mostly-folded state, so I'm wondering if there's anything we can do to make the overlay toggling more efficient for folded subtrees. Thank you again for sharing the package!

aspiers commented 6 months ago

I have exactly the same experience. I would love to use this package, but unfortunately this is a complete deal-breaker for me and I will regrettably have to disable this mode for now. It would be awesome if this performance issue could be fixed!

Interestingly my TODO.org is ~580k and yet saving takes around 9-10 seconds. Given that it's an order of magnitude bigger than @acowley's, I wonder why it's not significantly slower too.