bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash hash bug


From: Eric Blake
Subject: Re: bash hash bug
Date: Fri, 24 Nov 2006 07:15:48 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Chet Ramey on 11/21/2006 7:15 AM:
>>> Chet Ramey wrote:
>>>> When this option is on, bash has to check the hashed filename for
>>>> each hash lookup.  This essentially causes the hash entry to be
>>>> deleted and re-added each time, which resets the number of hits to 1.
>>>> (It could probably be done without the deletion and re-addition; I
>>>> should look at that.)
> 
> I looked, and it can.  So performance will improve slightly, since there
> doesn't need to be a redundant path search, and the `hit count', which is
> just a coarse estimate of hashing effectiveness, will be more meaningful.

Any chance this can be made an official patch for 3.2, or do I have to
wait until 4.0 to get this performance increase?

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFZv6R84KuGfSFAYARAoTRAJ9bXZevtp/fWEfYzv2MKeuFCxYwjACg0MPy
HrPWruP7K9YsxxDg2n10L0Q=
=4Wug
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]