Strinx-0.62

S

shablool

The Strinx library is a lightweight extension to the standard C++
template library, aimed to provide a set of highly efficient
containers, by using different memory model then traditional STL
containers, which is also less likely to cause memory fragmentations
on long running applications.

Performance benchmarks show that Strinx containers have better
performance then STL containers (on Linux machine, GCC 4.1.2):

http://strinx.sourceforge.net/docs/strinx.html

ShacharS.
 
B

bilgekhan

shablool said:
The Strinx library is a lightweight extension to the standard C++
template library, aimed to provide a set of highly efficient
containers, by using different memory model then traditional STL
containers, which is also less likely to cause memory fragmentations
on long running applications.

Performance benchmarks show that Strinx containers have better
performance then STL containers (on Linux machine, GCC 4.1.2):

http://strinx.sourceforge.net/docs/strinx.html

ShacharS.

I haven't tried it out yet but it sounds a good idea.
But I would extend it, so that when the container gets full
that it autom. tries to realloc() the memory with an additional x%
(say 10%) room for new items.

So, the user defines the initial size (ie. nelems) and by this
how much memory to preallocate initally, plus a growing factor
(here 10%). This way it has practically no limits in growing
should the case occur for needing to add even more items
then initially was planned by the user.

It's IMO the most flexible solution. You can keep your design
and just add the above feature of auto-growing of the buffer.
You should also allow the user to change the growing factor
anytime after the inital definition.
You can try this concept out (benchmark) with say the set<T> type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top