From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: rtrees
Date: Thu, 02 Dec 2010 17:16:51 +0100 [thread overview]
Message-ID: <m3pqtk880c.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m3lj49dyue.fsf@quimbies.gnus.org>
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> (benchmark-run-compiled 1 (dotimes (i 100000) (memq 74500 list)))
> (0.47300300000000006 0 0.0)
>
> And it is, the built-in memq winds overwhelmingly.
>
> But what about the new tree thing:
>
> (benchmark-run-compiled 1 (dotimes (i 100000) (rtree-memq rt 74500)))
> (0.41015 0 0.0)
>
> Yay. So it's slightly better than the list solution, even in this
> situation.
D'oh. I made rtree-memq recursive, even though that's totally
unnecessary. Rewriting it as a loop gives:
(benchmark-run-compiled 1 (dotimes (i 100000) (rtree-memq rtree 74500)))
(0.30733699999999997 0 0.0)
Hah.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-12-02 16:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 19:31 shr and background colour Adam Sjøgren
2010-12-01 9:39 ` Julien Danjou
2010-12-01 17:12 ` rtrees (was: shr and background colour) Lars Magne Ingebrigtsen
2010-12-01 17:59 ` rtrees Julien Danjou
2010-12-01 18:29 ` rtrees Jason Riedy
2010-12-01 18:34 ` rtrees Lars Magne Ingebrigtsen
2010-12-01 18:36 ` rtrees Lars Magne Ingebrigtsen
2010-12-01 20:26 ` rtrees Lars Magne Ingebrigtsen
2010-12-02 9:49 ` rtrees Julien Danjou
2010-12-02 16:16 ` Lars Magne Ingebrigtsen [this message]
2010-12-02 17:47 ` rtrees Lars Magne Ingebrigtsen
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=m3pqtk880c.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).