Re: [PATCH] Remove perl dependency from git-submodule.sh
- From
Fredrik Gustafsson <iveqy@iveqy.com>
- Date
- May 31, 2012, 10:37 UTC
- Message-ID
- <20120531103713.GA30500@paksenarrion.iveqy.com>
- In-Reply-To
- <CACBZZX6fV5PpgV6GMhDMYgXeeP_QYK9jnP15tMn9Y-a-O6Pn3A@mail.gmail.com>
On Thu, May 31, 2012 at 11:07:22AM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> On Thu, May 31, 2012 at 10:48 AM, Fredrik Gustafsson <iveqy@iveqy.com> wrote: > > Rewrote a perl section in sh. > > > > The code may be a bit slower (doing grep on strings instead of using > > perl-lists). > > May be? Did you test it, if so what's the difference?
I did not test it. I think that it can be easily judged by someone that knows how perl implements its arrays. With an array implementation with a hashmap-solution, it should be slower, of course depending on the number of submodules.
-- Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: iveqy@iveqy.com