From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: rfi: hash set
Date: Mon, 17 Jan 2011 22:27:16 +0100 [thread overview]
Message-ID: <87r5cbi5l7.fsf@gnu.org> (raw)
In-Reply-To: AANLkTineFTMk-bfCJ9FtT8jw3UMDVBWQxWn_yP=-eyY4@mail.gmail.com
Hi Noah!
Noah Lavine <noah.b.lavine@gmail.com> writes:
> I started looking into implementing this, and I ran into something
> strange that I'd like clarification on. Am I correct in saying that
> currently, hash tables can only shrink by one size index when they are
> rehashed?
Yes, your analysis looks correct to me. Would you like to look into
fixing this? :-)
I suppose the trick would be to regularly recompile ‘min_size_index’
based on the current ‘SCM_HASHTABLE_N_ITEMS’, iterating on
HASHTABLE_SIZE, starting from the current ‘min_size_index’.
Thanks,
Ludo’.
next prev parent reply other threads:[~2011-01-17 21:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 3:56 rfi: hash set Andy Wingo
2011-01-15 1:42 ` Noah Lavine
2011-01-17 21:27 ` Ludovic Courtès [this message]
2011-01-20 2:11 ` Noah Lavine
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.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5cbi5l7.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guile-devel@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.
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).