Opened 12 years ago

Closed 12 years ago

#4231 closed Bugs (duplicate)

Performance of destroying objects from boost::object_ppol

Reported by: Rohit Joshi Owned by: Chris Newbold
Milestone: Boost 1.43.0 Component: pool
Version: Boost 1.42.0 Severity: Optimization
Keywords: Cc:

Description

I was using boost::object_pool in my program and performance went down. I though that was due to boost::multi_index_container https://svn.boost.org/trac/boost/ticket/4220 but later found that it was due to boost::object_pool.

Her is a link for source code: http://joshitech.blogspott.com/2010/05/boost-object-pool-destroy-performance.html

This are the test results.

./object_pool_test 10000 Total time to destroy 10000 using delete: 0.3158860 Total time to destroy 10000 from object_pool: 1.447002736 sec

./object_pool_test 20000 Total time to destroy 20000 using delete: 0.6340170 Total time to destroy 20000 from object_pool: 9.624879974 sec

./object_pool_test 30000 Total time to destroy 30000 using delete: 0.10413087 Total time to destroy 30000 from object_pool: 32.150515048 sec

Change History (2)

comment:1 by anonymous, 12 years ago

NOTE: Source code link has two "t" in blogspotdotcom because it doesn't allow blogspot

comment:2 by anonymous, 12 years ago

Resolution: duplicate
Status: newclosed

I saw similar existin byg 3789 so marking this as duplicate.

https://svn.boost.org/trac/boost/ticket/3789

Note: See TracTickets for help on using tickets.