Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Koichi Murase Newsgroups: gnu.bash.bug Subject: Re: [PATCH] Implement rehashing for associative arrays (Re: speeding up hash_search?) Date: Mon, 20 Apr 2020 23:48:04 +0900 Lines: 34 Approved: bug-bash@gnu.org Message-ID: References: <20200420124911.GW845@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1587394102 3828 209.51.188.17 (20 Apr 2020 14:48:22 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org, George Jones Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Yr42PqqjLWtkFLwzlnqJImSmsc4+BT9rOlAjT5X+rDM=; b=t6ob3RR6rDdlActoCUCAUY0K5CxwVG+p3ai8ETx4JSMvwctyHN6Tiu3h17NbXc9fjd VTVE4GLD1/LVzH8qjy+agoG8epgF71e/Nt9W6EA9zQXWJr4YU2sWcEozfWO732/vMfsC RbkVpupfSFRvlne4cLw+/i1Nww4dx47xx+E2cyevnaXepVTVJgGayquuUBS0v63SpVQB BK1gDl8vB4hpDjwkDtJoqLThoFIiXm2RgB2G32y7otgUp9wUyZBrwEwSyhV9g/z6OEyT 42PfiuKuPFAsJoqaXr7VnLkJvDUjjK9S0SUlFWOiQEYNUDNlv5vjM5gdJv6WiNArKaOF KeoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Yr42PqqjLWtkFLwzlnqJImSmsc4+BT9rOlAjT5X+rDM=; b=SsqNIkWt2teqMky3GBfGwm40UC5wgVTedmE5xDHa0OOI9hkJcfGnxwGzSY27u/APnz WuK5+l4R09ciyYGgYWgDDURF/RNq22D1mF65FjrVsuiEXSM7KGA+IQ5dupM9EEBjmjtF LJ2np8MasCiX++F+ix9ZNFD9f70CwfTmDMfVEVIJ8eW9pZcmMp6Rr3IuHved9K7yswh/ d/2tfF4H+2yevQJLvbZ6wYMxNTOdZRpPuwuJgYuYt3wxbocADHV15+o45jRoy+DtZo79 qF5OzG51mzGQwubQZGDMIiGyP6jy9b4PO2aH27yiMM0cKIDe8YBQl4yDIQ2wRXDzVIN0 L7Zg== X-Gm-Message-State: AGi0PubXzqM/zTeY5qwir7y8J6jA5qpGKaMWvXZeB1y5Nz/Wjzcc05RA U360sb51RMouPp+RmrP4/1uz8WCkR2Oa9wYawVOTR+1++m8= X-Google-Smtp-Source: APiQypILBp+KTC8/O2+vGIhV+sp2VCnZMq3L8kWwhjyd/sQ9Foz3OBLGbNSgQVdtts8pARxcmckz0vhkvWNmK2bpWFA= X-Received: by 2002:a2e:b53b:: with SMTP id z27mr6681180ljm.114.1587394095425; Mon, 20 Apr 2020 07:48:15 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::242; envelope-from=myoga.murase@gmail.com; helo=mail-lj1-x242.google.com X-detected-operating-system: by eggs1p.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::242 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20200420124911.GW845@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:16190 2020-04-20 23:05 Chet Ramey : > On 4/20/20 8:49 AM, Greg Wooledge wrote: > > On Mon, Apr 20, 2020 at 06:48:44PM +0900, Koichi Murase wrote: > >> Also, I am sorry that I disturbed your plan for contributing to Bash. > >> I actually initially doubted that the insertion with the current > >> implementation is O(N), so I created the test first and then found > >> that it is an easy fix rather than reimplementing it by B-tree or > >> other data structures. I couldn't stop my interest in how much it is > >> improved by the easy fix. > > > > This should in no way make the OP feel that they didn't contribute. > > Spotting and diagnosing problems is important work, even if their > > proposed patch wasn't selected as the best solution. > > This is quite true. Dear All, Yes, thank you for clarification and sorry for confusing writing. I did not mean George's contribution disappeared, but just I have disturbed his five-step plan on his blog where the remaining four steps are now canceled. I have to add that identifying the problem is definitely the most non-trivial part because it is relatively straightforward to fix the problem once the problem is identified :). Also, I would like to thank George for additional testing of my patch. Of course, this also applies to my patches. I think I have sent more than ten patches so far and many of them have been applied, but I am anyway happy if the problems are solved. You can always reject my patches when you have better solutions. -- Koichi