bug-bash
[Top][All Lists]
Advanced

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

Re: Q: what is a fast way to see if an 'item' is present in an array?


From: Greg Wooledge
Subject: Re: Q: what is a fast way to see if an 'item' is present in an array?
Date: Tue, 16 Feb 2016 08:27:42 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Feb 15, 2016 at 07:59:21PM -0800, Linda Walsh wrote:
> Obviously, If I could precook the array into
> a hash, I'd think it would be faster... but
> the "cooking part", I think, is the high
> overhead part.

Redesign the entire script so that you use the associative array (hash)
from the beginning instead of, or in addition to, storing your information
in a "list" (indexed array).



reply via email to

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