gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] Re: darcs vs tla


From: Aaron Bentley
Subject: Re: [Gnu-arch-users] Re: darcs vs tla
Date: Thu, 11 Nov 2004 09:43:20 -0500
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)

Jan Hudec wrote:
On Thu, Nov 11, 2004 at 11:36:42 +0000, Catalin Marinas wrote:
C is a language where you might have to implement a lot of things
yourself. In C++, things are a bit different. You need a list, just
use the STL or some other template library (Boost). If, after
profiling your code, you realise that this list is slow you can easily
change it (providing that you had some rules like using typedefs
etc.). You might not have this option in a HLL.


Replacing eg. STL list with a Boost one rarely wins much. What wins much
is replacing eg. list with a vector -- generaly with a different
structure with more appropriate asymptotic behaviour. Reasonable HLLs
give you this choice.

I believe Catalin was contrasting using an existing list from a well-tested library with hand-hacking your own. This is a programmer-time savings, unless the performance of the list is critical to the program.

Aaron

--
Aaron Bentley
Director of Technology
Panometrics, Inc.




reply via email to

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