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.
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.
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.
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?
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?!
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.