[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add-rm-rf-as-examples-loadables-rm.c
From: |
Chet Ramey |
Subject: |
Re: [PATCH] Add-rm-rf-as-examples-loadables-rm.c |
Date: |
Mon, 31 Oct 2016 18:30:31 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 10/31/16 5:44 PM, Eric Blake wrote:
> On 10/31/2016 04:14 PM, Chet Ramey wrote:
>
>>>> Nice, thanks for the modifications.
>> Here's the modified version.
>>
>> Chet
>> -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars
>> longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu
>> http://cnswww.cns.cwru.edu/~chet/
>>
>
>>
>> if ((dir = opendir(dirname)))
>> {
>> while ((dp = readdir(dir)))
>
> Ouch. This version has O(n^2) complexity when dealing with deep
> hierarchies.
You appear to have completely missed the point of this simple, specialized
implementation. It has a single purpose.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature