Simply always use std::vector, it's *the* default container. Only change
away from it if there are really good reasons...
-----Ursprüngliche Nachricht-----
Von: Martin Owens [mailto:doctormo@...400...]
Gesendet: Freitag, 28. Februar 2014 23:17
An: Jon Cruz
Cc: Inkscape Devel List
Betreff: Re: [Inkscape-devel] Href sub-document model
On Fri, 2014-02-28 at 11:25 -0800, Jon Cruz wrote:
Unless performance actually is measured to be significantly
different,
std::vector<> should be the 'go to' solution. People often think they
have a case where a list is better, but once you start to count up
times iterating the list vs times modifying it, std::vector<> is
almost always better in practice.
This list is a low write, low read, low iteration, low count list. Your
description doesn't say what the specific advantages are so it's hard to be
sure what you're recommending.
Although you are right that a document maybe referenced by more than one
href in the same document; although not in multiple opened documents because
of where the list is.
At least for now I don't believe we're going to suffer any performance
problems.
Martin,
----------------------------------------------------------------------------
--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg...
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel