BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

some STL questions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical)
View previous topic :: View next topic  
Author Message
Mike Margerum
Guest





PostPosted: Wed Mar 22, 2006 8:03 pm    Post subject: some STL questions Reply with quote



I'm building an app in BCB6 that uses from pretty huge stl maps,
vectors, and lists. Has anyone had any problem using these constructs
with 30,000 plus objects in them? Would BDS 2006 new memory manager
make the STL faster and/or more efficient?

Which STL implementation is BDS 2006 using?

thx for the help
Back to top
AlisdairM
Guest





PostPosted: Wed Mar 22, 2006 8:03 pm    Post subject: Re: some STL questions Reply with quote



Mike Margerum wrote:

Quote:
I'm building an app in BCB6 that uses from pretty huge stl maps,
vectors, and lists. Has anyone had any problem using these
constructs with 30,000 plus objects in them? Would BDS 2006 new
memory manager make the STL faster and/or more efficient?

The new memory manager makes VCL-heavy code much faster.
My results with STL performance have been mixed at best. This is
largely due to Dinkumware relying on stronger inliners in other
compilers to reduce the abstraction penalty - so vector::iterator will
not be a pointer, even in release mode. It will be a distinct class
type, which gives better static type checking, and (optionally) runtime
checks.

We have no serious benchmarks yet (from our own code) but most of our
number crunching is handled in 3rd party DLLs these days. Generally we
are seeing similar performance with a little tuning, but the only
significant improvements are in certain VCL controls (such as TListView)

At least for our apps - YMMV as always.

Quote:
Which STL implementation is BDS 2006 using?

Dinkumware.

--
AlisdairM(TeamB)
Back to top
Chris Uzdavinis (TeamB)
Guest





PostPosted: Wed Mar 22, 2006 8:03 pm    Post subject: Re: some STL questions Reply with quote



Mike Margerum <junk (AT) mail (DOT) com> writes:

Quote:
I'm building an app in BCB6 that uses from pretty huge stl maps,
vectors, and lists. Has anyone had any problem using these constructs
with 30,000 plus objects in them? Would BDS 2006 new memory manager
make the STL faster and/or more efficient?

It really depends on how you use it. What opeartions, and on which data
structures, are too slow for you? Every data structure has different
performance requirements for the various operations.

For example, inserts, deletes, and lookups are the common operations,
and their runtime complexity depends on the data structure. There are
optimizations you can do to greatly help.

For one example, inserting things into a vector one-at-a-time can be
very slow if you insert a lot of items without reserving memory in
advance for the number of elements you need to insert.

Quote:
Which STL implementation is BDS 2006 using?

Dinkumware.

--
Chris (TeamB);
Back to top
Mike Margerum
Guest





PostPosted: Wed Mar 22, 2006 9:03 pm    Post subject: Re: some STL questions Reply with quote

I'm mostly concerned with possible bugs in the BCB 6 STL implementation
with that many items. I really haven't had any performance issues so far.

Quote:
Which STL implementation is BDS 2006 using?

Dinkumware.


That's another reason to upgrade. Thanks!
Back to top
Mike Margerum
Guest





PostPosted: Wed Mar 22, 2006 9:03 pm    Post subject: Re: some STL questions Reply with quote

Quote:
The new memory manager makes VCL-heavy code much faster.
My results with STL performance have been mixed at best. This is
largely due to Dinkumware relying on stronger inliners in other
compilers to reduce the abstraction penalty - so vector::iterator will
not be a pointer, even in release mode. It will be a distinct class
type, which gives better static type checking, and (optionally) runtime
checks.


Thanks for the info.
Back to top
Arnie
Guest





PostPosted: Thu Mar 23, 2006 9:03 pm    Post subject: Re: some STL questions Reply with quote

"Mike Margerum" <junk (AT) mail (DOT) com> wrote in message
news:44219a48 (AT) newsgroups (DOT) borland.com...
Quote:
I'm building an app in BCB6 that uses from pretty huge stl
maps, vectors, and lists. Has anyone had any problem using
these constructs with 30,000 plus objects in them? Would BDS
2006 new memory manager make the STL faster and/or more
efficient?

Which STL implementation is BDS 2006 using?

thx for the help

We have both vectors and maps or sets with up to about 18,000,000
items in them in BCB 5 (Roguewave) and VC++8 (Dinkumware). No
problems except occasionally running out of memory Sad These are
DB apps that cache some of the columns from some very large
tables.

- Arnie
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.