Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely slow sync since several weeks #195

Closed
inglada opened this issue Jan 2, 2020 · 4 comments
Closed

Extremely slow sync since several weeks #195

inglada opened this issue Jan 2, 2020 · 4 comments

Comments

@inglada
Copy link

inglada commented Jan 2, 2020

Hi,
I've been using org-caldav for several years now, an although sync was not fast, it was perfect for me. So thank you very much for this package.

For several weeks now I have been having extremely slow syncs. This does not seem to be a caldav server issue, since emacs is running at 100% CPU during sync.

After profiling, I understand that the org-id-find function is consuming a lot of time. I also have warnings about duplicate IDs (which I already had before but seemed harmful, since they were in ~/.emacs.d/org-caldav-backup.org).

Is there anything I can do to speed up things?

I am using org-caldav-20191024.724 from MELPA.

Thanks.

@dengste
Copy link
Owner

dengste commented May 12, 2020

I'm guessing this happens due to some change in org-id, not in org-caldav. I actually just realized yesterday that the tests are also broken because org-id-find does no longer consider currently open buffers, but this should actually make org-id faster.
So my guess is this happened to you after an org-mode update. If you'd be able to pinpoint this further through profiling, or maybe bisecting org-id.el, this would be very helpful.

@inglada
Copy link
Author

inglada commented May 13, 2020

Hi,
I just upgraded org (updated on melpa 2 days ago) and everything's good again. So I guess this can be closed.
Thanks

@dengste
Copy link
Owner

dengste commented May 13, 2020

Thanks for the feedback!

@dengste dengste closed this as completed May 13, 2020
@inglada
Copy link
Author

inglada commented May 21, 2020

Hi,
Unfortunately, the problem is still there. There were a couple of syncs which worked OK, but it is again taking long time.
The events are retrived from the server and the "inbox" files are correctly populated. Since I only do a cal->org sync, that would be enough for me.
Another info which may be useful is that my org-id-locations file has about 345K entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants