emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "numbchild@gmail.com" <numbchild@gmail.com>
To: emacs-help <help-gnu-emacs@gnu.org>, Org-mode <emacs-orgmode@gnu.org>
Subject: How to improve my extension source code don't generate so many timers?
Date: Sat, 18 Jul 2020 08:49:38 +0800	[thread overview]
Message-ID: <CAL1eYuKPdEEsGKAVSQSOpKuB_j2Fc+ft4m74WMOurGQub-P-Hg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3028 bytes --]

I write an extension org-link-beautify (
https://github.com/stardiviner/org-link-beautify). It use text-property to
display all-the-icons icon for links.
When I use `list-timers`, I found many timers like this:

#+begin_example
1179.80          -    #f(compiled-function () #<bytecode
-0x120012ba5f9562c1> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1003358868.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0x11c7991bee93a665> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1004068059.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
0x1d09e6f58d6a9d3f> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1004540555.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0x728e7a4499562c5> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1010525956.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0x8917a573e9562c5> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1011541969.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0x8a8404bf993a661> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1011587546.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0x70319646f93a661> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1012116218.jpg" :v-adjust 0.01) remhash])
1179.80          -    #f(compiled-function () #<bytecode
-0xa824299ef93a661> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1013965598.jpg" :v-adjust 0.01) remhash])
1179.81          -    #f(compiled-function () #<bytecode
-0x91d3e3e9e9562c5> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1014809589.jpg" :v-adjust 0.01) remhash])
1179.81          -    #f(compiled-function () #<bytecode
-0xd2810bce79562c5> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1017207950.jpg" :v-adjust 0.01) remhash])
1179.81          -    #f(compiled-function () #<bytecode
-0xd581d833693a661> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1018964381.jpg" :v-adjust 0.01) remhash])
1179.81          -    #f(compiled-function () #<bytecode
0x17558f4ad16c599b> [#<hash-table equal 1440/1642 0x1565afccff6b>
("1019711419.jpg" :v-adjust 0.01) remhash])
1179.81          -    #f(compiled-function () #<bytecode
0x1533bff0ac6a9d3f> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1019920854.jpg" :v-adjust 0.01) remhash])
1179.91          -    #f(compiled-function () #<bytecode
-0x149f1161329562c8> [#<hash-table equal 1440/1642 0x1565afccff6b>
("-1162442495.jpg" :v-adjust 0.01) remhash])
#+end_example

I'm wandering is there someplace I write wrong in my source code:
https://github.com/stardiviner/org-link-beautify/blob/master/org-link-beautify.el

Or maybe this is an mechanism in Org Mode?

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

[-- Attachment #2: Type: text/html, Size: 4712 bytes --]

                 reply	other threads:[~2020-07-18  0:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAL1eYuKPdEEsGKAVSQSOpKuB_j2Fc+ft4m74WMOurGQub-P-Hg@mail.gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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).