0
要繼續提出另一個問題,請問:boost如何實現信號和插槽?
Boost如何實現信號/插槽機制?
參見: How signal and slots are implemented under the hood? http://www.boost.org/doc/libs/1_40_0/doc/html/signals.html
要繼續提出另一個問題,請問:boost如何實現信號和插槽?
Boost如何實現信號/插槽機制?
參見: How signal and slots are implemented under the hood? http://www.boost.org/doc/libs/1_40_0/doc/html/signals.html
這裏是從this gamedev.net thread一個有趣的片段,以獲得討論通過Spoonbender滾動
原帖所以,獎金 問題:是什麼原因導致的boost ::信號 是那要慢多少?
它看起來像有幾個 biggies。首先,儘管 boost :: signals不是線程安全的,但它 幾次進入並離開關鍵部分 。其次,有 這個named-slots thingy似乎是 導致過於複雜的數據 結構花費很長時間來迭代 。然後有很多 鎳和從各種 家務管理的事情。最後,由於boost :: bind的 runtiminess,個別調用的 開銷更高。這是所有功能 ,我敢肯定有人需要, ,但我沒有。