emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Pedro <pinmacs@cas.cat>
Cc: emacs-orgmode@gnu.org
Subject: Re: [SUMMARY] #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3
Date: Thu, 27 Jun 2024 13:31:31 +0000	[thread overview]
Message-ID: <87y16qwlzg.fsf@localhost> (raw)
In-Reply-To: <47e006ca-cff6-45ab-a666-8ed41ee98407@cas.cat>

Pedro <pinmacs@cas.cat> writes:

> On 6/22/24 10:32, Ihor Radchenko wrote:
>> - Tim continued his struggle with an elusive bug he experiences when
>>    setting tags (C-c C-q) in large Org buffers - setting tags takes
>>    forever for him. (There is infinite loop likely lurking somewhere)
>
> I have the same bug, but I said nothing because I don't have right now 
> time to report. When I read it, I just wanted to share that this also 
> happens to me.

To be clear, I have no idea what kind of bug Tim experiences. I just
had a _guess_. It may or may not be the same bug.

Same for your case. I cannot tell without seeing the details.

> I work with huge diary files and I discovered that since the cache is 
> activated by default, when I remove or move certain subtrees/parts looks 
> like makes the cache corrupted...

Did it start happening recently?
If you think that the cache is corrupted, please add
(setq org-element--cache-self-verify t) to you config and watch the
warnings.

>  ... not 
>  only affects tag completion, that yeah, it takes forever, it also works 
>  weird on org-captures applied to huge buffer files

Again, please report these things separately.
I can see that you have problems, but I cannot help you without seeing
more details.

>  From user-view perspective, it was uncomfortable to see it enabled by 
> default, specially when you have problems, specially, when you try to 
> deal with a solution, and is not really documented on the workarounds, 
> etc [0].

The cache was enabled by default after I (0) rewrote the old buggy
implementation (1) enabled the new version in dev builds (Org 9.6-pre)
and fixed all the reported bugs; (2) released Org 9.6 with
org-element--cache-self-verify set to t and fixed the inflow of all the
reports about corrupted cache; (3) disabled cache verification to nil
when the reports stopped coming.

So, at this point, cache issues are extremely rare. (and note how your
[0] link is from a 6-years-old post; I rewrote that old cache version)

> ... It took me nearly 2 hours to stabilize again my workflow so I 
> agree that some information should be explained as stated in a recent 
> conversation [1]

That conversation is tangent. It is not about cache being enabled. It is
about various caches (not just org-element) being saved to disk.

> My vicious workflow regretably involves opening a lot of duplicated 
> buffers through emacsclient, and at some point, it becomes slow, so I do 
> this [2]

>     ;; after doing stuff, cache goes slow, but with this, it improves
>     ;; so this is arbitrary program, that my brain has associated with

Please report this as a bug separately. Ideally, with a reproducer.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2024-06-27 13:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-22 14:30 #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3 Ihor Radchenko
2024-06-22  8:32 ` [SUMMARY] " Ihor Radchenko
2024-06-27 12:45   ` Pedro
2024-06-27 13:31     ` Ihor Radchenko [this message]
2024-06-27 14:11       ` Pedro
2024-06-27 14:16         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y16qwlzg.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=pinmacs@cas.cat \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).