2010-02-01から1ヶ月間の記事一覧
つづきです。(前回:http://d.hatena.ne.jp/mojaro/20100207/1265524839)あのあとboostのソースを眺めていたら、気になる記述が。 boost/detail/sp_counted_base.hpp #if defined( BOOST_SP_DISABLE_THREADS ) # include <boost/smart_ptr/detail/sp_counted_base_nt.hpp> BOOST_SP_DISABLE_THREADS?? も</boost/smart_ptr/detail/sp_counted_base_nt.hpp>…
(boostについて色々調べていますが、今の職場はboostはおろか、stlさえも使う場面があまり無いんだよな・・・)
smart_ptr自体のパフォーマンスはそれほど問題なかったのですが、問題はweak_ptrが内部で取得しているmutexとかが思いっきり時間を食っている感じ。最後の追い込みでこの辺がネックになった。 http://d.hatena.ne.jp/mojaro/20100127/1264600563 ・・・と、…