[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryp
From: |
Daniel Clemente |
Subject: |
Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)) |
Date: |
Tue, 2 Jul 2024 16:54:19 +0000 |
> > For instance, I don't use it because it adds around 5 seconds to each
> > saving of a large file. If it were instantaneous I would enable it.
> > With it disabled, this explains why I often find unencrypted sections
> > at the end of the day… I have to rely on myself to reencrypt them
> > again.
>
> Does it also happen when you use the latest Org mode version?
>
Yes, with today's build. It happens with an 11 Mb Org file which has
19721 headers (some of them reach level 13).
Here I enabled the profiler, added a space, saved (1 time only), and
reported CPU. It took around 5 seconds.
4616 89% - command-execute
4349 84% - funcall-interactively
4127 80% - save-buffer
4127 80% - basic-save-buffer
3931 76% - run-hooks
3931 76% - org-encrypt-entries
3931 76% - org-scan-tags
3931 76% - org-element-cache-map
1764 34% - org-element--parse-to
868 16% - org-element--cache-put
848 16% - avl-tree-enter
840 16% - avl-tree--do-enter
792 15% - avl-tree--do-enter
748 14% - avl-tree--do-enter
688 13% - avl-tree--do-enter
632 12% - avl-tree--do-enter
576 11% + avl-tree--do-enter
52 1% + org-element--cache-compare
56 1% + org-element--cache-compare
44 0% + org-element--cache-compare
4 0% avl-tree--node-branch
44 0% + org-element--cache-compare
48 0% + org-element--cache-compare
580 11% - #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38>
448 8% + org-element-headline-parser
20 0% + org-element-section-parser
4 0% org-element-type
136 2% + org-element--cache-find
20 0% #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_12>
16 0% org-element-type
12 0% throw
8 0% + #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_15>
8 0% + #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_18>
4 0% org-element--cache-active-p
1161 22% - #<byte-code-function FF1>
857 16% - org-entry-get-with-inheritance
797 15% + org-element-lineage-map
8 0% org-element-at-point
8 0% make-closure
8 0% org--property-get-separator
4 0% mapconcat
184 3% + org-element--property
16 0% + org-get-tags
8 0% + org-encrypt-entry
8 0% org-element-begin
4 0% #<byte-code-function 99A>
4 0% functionp
446 8% + org-element-at-point
200 3% re-search-forward
124 2% + #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_66>
44 0% + #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>
28 0% match-data
12 0% make-closure
8 0% + org-element--property
4 0% #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_15>
4 0% org-element-type-p
4 0% #<native-comp-function
F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_18>
4 0% throw
196 3% + basic-save-buffer-1
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)),
Daniel Clemente <=
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Ihor Radchenko, 2024/07/02
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Daniel Clemente, 2024/07/04
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Ihor Radchenko, 2024/07/06
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Daniel Clemente, 2024/07/10
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Ihor Radchenko, 2024/07/11
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Daniel Clemente, 2024/07/15
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Ihor Radchenko, 2024/07/20
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Daniel Clemente, 2024/07/24
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Ihor Radchenko, 2024/07/25
- Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)), Daniel Clemente, 2024/07/25