| |
| Posted by Matthew in reply to Alex Vinokur | PermalinkReply |
|
Matthew
Posted in reply to Alex Vinokur
| Alex
Sorry for the delayed response. Comments inline ...
"Alex Vinokur" <alexvn@connect.to> wrote in message news:c3c6iv$5p2$1@digitaldaemon.com...
>
> "Matthew" <matthew@stlsoft.org> wrote in message
news:c3c3dd$bt$1@digitaldaemon.com...
> [snip]
> >
> > > Does STLSoft contain any things which are missing in GNU g++?
> >
> > STLSoft is a suite of library extensions, in the manner of STL. g++ is a compiler. I don't really understand your question. :(
>
> I meant the following point.
> GNU g++ contains STL.
> When/why does one need to use not only STL but another library in the manner of
STL? Any sample?
STL is not primarily about replacing components of the standard library - although there are some that do so, such as basic_simple_string<> and myriad allocators - but rather about providing STL-like interface layers over disparate operating system and technology-specific APIs.
For example, UNIXTL provides a readdir_sequence, which presents an STL Input Iterator access over the UNIX opendir()/readdir() API. Similarly, WinSTL provides reg_key_sequence and reg_value_sequence classes, which provide STL Bidirectional Iterator access over Win32 registry keys and values.
Hope that answers the question.
> [snip]
>
> Next question.
>
> Here are some results of comparative performance measurement: 1. Computing very long Fibonacci numbers http://article.gmane.org/gmane.comp.lang.c++.perfometer/31/
>
> 2. C/C++ Program Perfometer http://alexvn.freeservers.com/s1/perfo/tests/pftests.htm
>
> Could STLSoft (for instance, with g++) improve the performance.
It depends on the bottlenecks.
Some parts of STLSoft are aimed specifically at performance. For examples:
- auto_buffer provides highly efficient variable-sized automatic buffers
- fixed_array provides a very efficient multidimensional array
- fast_string_concatenation provides a very fast, non-intrusive, mechanism
for improving string concatenation. (This is described in an article in next
month's - June 2004 - CUJ; http://www.cuj.com)
- and several others.
I'm afraid I do not have the bandwidth to be able to examine specific code to determine recommendations, but you're welcome to experiment and post results/observations. You might also check out the articles listed in http://synesis.com.au/articles.html, many of which are to do with performance + STLSoft
>
> --
> Alex Vinokur
> mailto:alexvn@connect.to
> http://mathforum.org/library/view/10978.html
>
>
>
>
>
>
|