Boost question

Hello all,
I'm starting in C++ and looking some forums, tutorials. I've looked many things made by boost references, my question is, is the boost libraries trustable, and for me, that look for performance, is better use them or develop my own libs?!t the Boost libs.

I'd like some opinions about the boost libraries.

Thanks all.
Last edited on
Many boost libraries are developed by some members of the C++ standards committee, many of those libraries will be part of the next standards.
Boost may be the best C++ libraries you can find, custom-made libraries can never be more efficient than them
...one of the most highly regarded and expertly designed C++ library projects in the world.

You can take that quote on the boost site at face value.
boost is widely used, well-tested and provides countless things you'll need in your programs.

Bazzy wrote:
custom-made libraries can never be more efficient than them

Well, efficiency is mostly binary code size and speed for me. You can outperform boost in many cases.
For example, my (string) split implementation is more than twice as fast as boost's and I never even tried to optimize for speed.
Last edited on
Well, so for example in my program, I'll probably have to use Asio, FileSystem, Thread basically, can I trust in their performance?!
Yes. Boost.Thread's locks are fast and Asio is made for fast operation.
I think you should start worrying about performance if it proves to be unsatisfactory - not before.
Hunn, and what do you tell me about queues, some good library?
Yes, the C++ standard library (std::queue).
Ok man, thanks a lot.
I'm asking it cause I made a multi-threading software using boost thread, asio and the library std::queue, is a simple receive -> process -> write, and it's using around 60% of a quad-core machine, i think this is not normal right?
CPU usage isn't everything. Consider other bottlenecks, such as disk access.
well, it wasn't any boost library, whats happening is that am mounting a XML file manually, and this is fcking the CPU usage, do you know some good lib to do it for me?!

thks all.
and it's using around 60% of a quad-core machine, i think this is not normal right?

Then what is "normal" for you? Do you expect it to be lower? Then what exactly do you think multi-threading is for? Do you except it to be higher? Then see moorecm's response.

am mounting a XML file manually

So how do you "mount" an XML file? You should explain in detail what you're trying to do.
If you aren't using 100% of the CPU (or at least 100% of all the cores you are using), then you don't have an issue with the CPU (yet).
Athar,
I discovered that it's everything ok, because I'm using a API that uses always one core, I contacted the API support and they tell me that.

So how do you "mount" an XML file? You should explain in detail what you're trying to do.


string a = <a>value</a>

but now it's ok, resolved, thanks however.

Now I have another question, but nothing referent to this topic, I'll open other topic.
rsrs.
Last edited on
Topic archived. No new replies allowed.