Boost pool

  • Published on
    06-Jan-2017

  • View
    1.504

  • Download
    1

Embed Size (px)

Transcript

<p>boost::pool</p> <p>boost::poolNEXT INSTITUTE </p> <p>pool ?</p> <p> .</p> <p> , .http://www.boost.org/doc/libs/1_50_0/libs/pool/doc/html/boost_pool/pool/introduction.html</p> <p> pool ?</p> <p> .</p> <p> .</p> <p> .</p> <p> pool ?</p> <p> (or just drop them off into oblivion)</p> <p> pool ?</p> <p>boost::pool</p> <p> pool .</p> <p> .</p> <p> chunk .</p> <p>boost::pool</p> <p>dont take the time to free it! </p> <p>malloc .</p> <p>boost::object_pool</p> <p> pool </p> <p> 4 .</p> <p>boost::object_pool</p> <p>boost::object_pool</p> <p>boost::object_pool</p> <p>malloc &amp; free vs construct &amp; destroy</p> <p>malloc free .</p> <p>construct destroy .</p> <p>boost::singleton_pool</p> <p>14</p> <p>boost::singleton_pool</p> <p>boost::pool </p> <p>thread-safe</p> <p>15</p> <p>boost::singleton_pool</p> <p>MyPoolTag .</p> <p>16</p> <p>boost::singleton_pool</p> <p>boost::singleton_pool::malloc() .</p> <p>17</p> <p>boost::singleton_pool</p> <p>18</p> <p>release vs purge</p> <p>release_memory() true </p> <p>purge_memory() true </p> <p>19</p> <p>boost::pool_allocator</p> <p>pool </p> <p>boost::singleton_pool </p> <p>std::container Allocator </p> <p>boost::pool_allocator</p> <p>pool_allocator .</p> <p> boost::singleton_pool::release_memory() .</p> <p>boost::pool_allocator</p> <p>boost::fast_pool_allocator</p> <p>NextSize : MaxSize : </p> <p>boost::fast_pool_allocator</p> <p>http://theboostcpplibraries.com/boost.pool</p> <p>pool_alloc vs fast_pool_allocpool_allocator , .std::vector </p> <p>fast_pool_allocator std::list, map </p> <p>with thread</p> <p>singleton_pool thread-safe .</p> <p> .</p> <p>http://zepeh.tistory.com/306</p> <p>with thread</p> <p>with thread</p> <p>with thread</p> <p>with thread</p> <p>30</p> <p>with thread</p> <p>31</p> <p>with thread</p> <p> , mutex null_mutex .</p> <p>http://zepeh.tistory.com/306</p> <p>32</p> <p>with thread</p> <p> , mutex null_mutex .</p> <p>33</p> <p>with thread</p> <p>34</p>