|
Boost Users : |
Subject: Re: [Boost-users] the problem about boost trim function in multi-thread
From: Igor R (boost.lists_at_[hidden])
Date: 2012-06-19 10:39:23
> I use boost trim function and find it perform very well in single-thread
> environment.
>
> But when I call trim function in multi-thread environment, it will have a
> poor performance.
Perhaps, it's because boot::trim() uses std::locale(), which involves
a lot of locks in a multi-threaded environment. But try analysing it
with a performance profiler.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net