|
Boost Users : |
From: Roy Emek (r_emek_at_[hidden])
Date: 2006-08-21 17:22:02
Iâm using boost-regex library, and Iâm running
into multi-threading scalability issues. When tested
on a machine with several CPUs, my performance tests
show improvement of about 60-70% when moving from a
single thread to 2 threads.
Question 1: Is anyone aware of this problem? Is there
a known solution?
>From some testing weâve done, it seems that the
cause of the scalability issue is problematic
implementation of std:allocator. This is a known issue
on some operating systems (e.g., Solaris 8). Some of
the boost::regex classes (e.g., match_results) accept
a user-defined allocator. However, as far as I can
understand thereâs no way to completely override the
use of std::allocator.
Question 2: is there a way to completely prevent boost
/ regex from using std::allocator? If no, can such a
capability be added?
(One solution to this problem would be global
overriding the ânewâ and âdeleteâ operators
â but for various reasons this cannot be done in the
application Iâm developing).
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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