A file reading benchmark
Robert Jacques
sandford at jhu.edu
Fri Feb 17 19:39:15 PST 2012
On Fri, 17 Feb 2012 21:25:05 -0600, bearophile <bearophileHUGS at lycos.com> wrote:
[snip]
>> Bearophile, when comparing a deque to a classic vector, of course the deque is going to win. This has nothing to do with D, and everything to do with writing a good algorithm.<
>
> In this specific case you are wrong: in Python if I replace the deque with a list (that is a dynamic array), the runtime grows only by less than 0.2 seconds. I know this benchmark is about Phobos not about D.
Whether or not deque vs vector was the primary performance problem, posting an 'apples to oranges' performance benchmark causes people to a) dismiss the thread and b) lower their opinion of the poster.
More information about the Digitalmars-d
mailing list