From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Eli Zaretskii <eliz@gnu.org>,
gerd.moellmann@gmail.com, emacs-devel@gnu.org
Subject: Re: Question about bignum usage
Date: Sat, 13 Jul 2024 11:43:40 +0200 [thread overview]
Message-ID: <14CA211A-7795-4427-B3B3-870B6EB80108@gmail.com> (raw)
In-Reply-To: <1cbd7603-2185-4066-9e0f-a358daf28af1@cs.ucla.edu>
11 juli 2024 kl. 16.10 skrev Paul Eggert <eggert@cs.ucla.edu>:
> I installed the attached. 0017 should should address the performance problem with decode_timer. The other patches refactor and address some related issues.
That was a lot more ambitious than I had in mind, thank you!
I pushed a tiny simplification. More can be done. For example, time decoding output sometimes depends on the exact form of the input:
(time-convert '(0 3) t) => (3 . 1)
(time-convert '(0 3 0) t) => (3000000 . 1000000)
(time-convert '(0 3 0 0) t) => (3000000000000 . 1000000000000)
Does it make sense to distinguish (A B), (A B 0) and (A B 0 0) like this? Some kind of performance hack to keep denominators the same?
> As I understand it decode_timer was the locus of the performance issue. If other places are also involved, please let me know.
It probably dealt with the most noticeable parts but the timer system doesn't appear to be short on slow code.
For example, does timer_check really need to duplicate the time queues each time they are checked for an event to run, even if there isn't one?
Not to mention the baroque time representation of `timer` objects and the cost of time-less-p and (especially) timer--time-less-p.
Can we make changes to the `timer` struct now? Apparently there were some holdouts in 2012 (which is why the `psec` slot is where it is) but there has to be a limit to how we have to support old badly written code.
next prev parent reply other threads:[~2024-07-13 9:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 5:59 Question about bignum usage Gerd Möllmann
2024-06-20 6:26 ` Eli Zaretskii
2024-06-20 6:34 ` Gerd Möllmann
2024-06-20 7:36 ` Eli Zaretskii
2024-06-20 8:35 ` Gerd Möllmann
2024-06-20 13:07 ` Gerd Möllmann
2024-06-20 13:43 ` Helmut Eller
2024-06-20 14:17 ` Gerd Möllmann
2024-06-20 18:32 ` Gerd Möllmann
2024-06-20 18:37 ` Gerd Möllmann
2024-06-20 18:58 ` Eli Zaretskii
2024-06-20 19:16 ` Gerd Möllmann
2024-06-20 19:25 ` Eli Zaretskii
2024-06-20 19:42 ` Gerd Möllmann
2024-06-20 9:38 ` Mattias Engdegård
2024-06-20 10:02 ` Eli Zaretskii
2024-07-11 14:10 ` Paul Eggert
2024-07-13 9:43 ` Mattias Engdegård [this message]
2024-07-14 4:34 ` Paul Eggert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14CA211A-7795-4427-B3B3-870B6EB80108@gmail.com \
--to=mattias.engdegard@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=gerd.moellmann@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.