Re: [GSoC] Question about std::map

2014-07-07 Thread Tobias Grosser
On 07/07/2014 13:14, Jonathan Wakely wrote: On 7 July 2014 12:08, Tobias Grosser wrote: The number of elements in these maps is most likely between 3-10. Then std::map is the wrong solution. The overhead of dereferencing all the pointers while walking through a std::map will be higher than t

Re: [GSoC] Question about std::map

2014-07-07 Thread Jonathan Wakely
On 7 July 2014 12:08, Tobias Grosser wrote: > > The number of elements in these maps is most likely between 3-10. Then std::map is the wrong solution. The overhead of dereferencing all the pointers while walking through a std::map will be higher than the savings you get from logarithmic lookup.

Re: [GSoC] Question about std::map

2014-07-07 Thread Tobias Grosser
On 05/07/2014 00:03, Trevor Saunders wrote: On Fri, Jul 04, 2014 at 09:57:11AM +0200, Tobias Grosser wrote: On 04/07/2014 04:16, Trevor Saunders wrote: On Thu, Jul 03, 2014 at 07:52:59PM +0200, Tobias Grosser wrote: On 03/07/2014 19:23, Roman Gareev wrote: Dear gcc contributors, could you pl

Re: [GSoC] Question about std::map

2014-07-04 Thread Trevor Saunders
On Fri, Jul 04, 2014 at 09:57:11AM +0200, Tobias Grosser wrote: > On 04/07/2014 04:16, Trevor Saunders wrote: > >On Thu, Jul 03, 2014 at 07:52:59PM +0200, Tobias Grosser wrote: > >>On 03/07/2014 19:23, Roman Gareev wrote: > >>>Dear gcc contributors, > >>> > >>>could you please answer a few question

Re: [GSoC] Question about std::map

2014-07-04 Thread Tobias Grosser
On 04/07/2014 04:16, Trevor Saunders wrote: On Thu, Jul 03, 2014 at 07:52:59PM +0200, Tobias Grosser wrote: On 03/07/2014 19:23, Roman Gareev wrote: Dear gcc contributors, could you please answer a few questions about std::map? Does gcc have a policy that forbids using of map in the source cod

Re: [GSoC] Question about std::map

2014-07-03 Thread Trevor Saunders
On Thu, Jul 03, 2014 at 07:52:59PM +0200, Tobias Grosser wrote: > On 03/07/2014 19:23, Roman Gareev wrote: > >Dear gcc contributors, > > > >could you please answer a few questions about std::map? Does gcc have > >a policy that forbids using of map in the source code of gcc? Can this > >using create

Re: [GSoC] Question about std::map

2014-07-03 Thread Tobias Grosser
On 03/07/2014 19:23, Roman Gareev wrote: Dear gcc contributors, could you please answer a few questions about std::map? Does gcc have a policy that forbids using of map in the source code of gcc? Can this using create a new installation dependency, which requires libstdc++? I would be very grate

[GSoC] Question about std::map

2014-07-03 Thread Roman Gareev
Dear gcc contributors, could you please answer a few questions about std::map? Does gcc have a policy that forbids using of map in the source code of gcc? Can this using create a new installation dependency, which requires libstdc++? I would be very grateful for your comments. --