Re: Feedback on recursive file search...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mark Alexander Bertenshaw (mark.bertenshaw_at_virgin.net)
Date: 11/16/04


Date: Tue, 16 Nov 2004 22:21:13 -0000

Schmidt wrote:
> "Dave" <Nobody@Nowhere.Com> schrieb im Newsbeitrag
> news:eN8KoDwyEHA.2624@TK2MSFTNGP11.phx.gbl...
>
>> I meant it philosophically, not in this specific case where the
>> FindFirst/FindNext/FindClose routine is pretty standard and wont
>> yield much to optimization. But programming is something nobody can
>> ever know everything there is to know, so it is always worth
>> revisiting old routines to see if in light of new knowledge they can
>> be improved.
>
> FindFirst/FindNext is a very good example:
> Regarding "light of new knowledge" - everybody who knows about the
> implicit Unicode-ANSI-Conversion VB does for String-Params (even in
> TypeDefs) sitting inside API-Declares, can speed up the classic
> File-Loop by factor 2-3, changing the Strings inside WIN32_FIND_DATA
> to ByteArrays.
>
> Olaf

Why do that when you can call the Unicode version of the API calls? (I
assume that you aren't writing for Win95/98/Me anymore :-) ).

--
Mark Bertenshaw
Kingston upon Thames
UK


Relevant Pages

  • Re: Feedback on recursive file search...
    ... >> yield much to optimization. ... But programming is something nobody can ...
    (microsoft.public.vb.general.discussion)
  • Re: data flow programming in c# (or any lang with coroutines)?
    ... another blog post which talked about doing logic programming through ... You can't have two iterators ... C#'s yield works strictly on a pull-basis. ... create a flow graph, and you then create instances of the flow graph. ...
    (comp.lang.functional)
  • Re: Structured Programming using Forth
    ... don't attempt to automate optimization at all. ... In your last reply to me, you disagreed with my statement that programming a SEAforth processor was going to be much more like assembly language programming than it would be Forth programming. ... Intellasys might take an different view-- that market acceptance of the SEAforth chip will require that they make it as easy as possible for engineers to use their chips. ...
    (comp.lang.forth)
  • On Sofware Quality Improvement
    ... time is spent battling bug caused by duplication or needless ... my experience, however, there is a lack of software engineering skills ... feelings and instincts while programming. ... impact of the optimization) are generally a waste of brain cycles. ...
    (comp.programming)