[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PERFORMANCE] Why some org code is so deep invoked?
From: |
Christopher M. Miles |
Subject: |
Re: [PERFORMANCE] Why some org code is so deep invoked? |
Date: |
Fri, 12 Aug 2022 22:16:06 +0800 |
User-agent: |
mu4e 1.8.6; emacs 28.1 |
Bill Burdick <bill.burdick@gmail.com> writes:
> You'll have this with recursive code and recursion is fairly normal in Lisp
> programs.
>
> -- Bill
I think this profiler report invocation stack is not recursive code. WDYT?
>
> On Fri, Aug 12, 2022 at 8:22 AM Christopher M. Miles <numbchild@gmail.com>
> wrote:
>
> Ihor Radchenko <yantar92@gmail.com> writes:
>
> > "Christopher M. Miles" <numbchild@gmail.com> writes:
> >
> >> When I profiling Org Agenda generation, I found that org code is deeply
> invoked in Emacs profiler report.
> >>
> >> My Question:
> >>
> >> - What reason caused this situation?
> >> - Can Org Mode optimize those deeply invoked code?
> >
> > Could you please clarify what exactly is your problem?
> > Is agenda generation slow?
>
> From the profiler report, you can see that Agenda is slow on clock table
> generation because I have ~org-agenda-start-with-clockreport-mode~
> enabled. And this deep code invocation is from it too. It's about 5
> seconds to generate the org-agenda clock table. Actually I can tolerate
> this time, Just found this performance issue when profiling and curious
> to ask this question.
>
> > I do not see much issue with deep nesting of the code.
>
> Is this deep nested code normal in Emacs Lisp?
>
> Usually (based on my less than 20 times profiling experience), Emacs
> wouldn't have deeper code than 40 levels. But my attachment profiler
> report has more than 100 levels.
>
> If this is normal and fine, It's OK. I repeat, I ask this question for
> curious purpose which want to get an answer for not important question.
>
> --
>
> [ stardiviner ]
> I try to make every word tell the meaning that I want to express without
> misunderstanding.
>
> Blog: https://stardiviner.github.io/
> IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
> GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without
misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature
- [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/11
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/11
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/12
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/13
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/13
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/13
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/13