Skip to content

fenbf/PointerAccessTest

Repository files navigation

#Pointer Access Tests# std::vector<Obj> vs std::vector<std::shared_ptr<Obj>>

described on a blog post at Code And Graphics - Vector of object vs Vector of pointers Tests

After watching some of the talks from Build 2014 - especially "Modern C++: What You Need to Know" and some talks from Eric Brumer I started thinking about writing my own test case. Basically I've created a simple code that compares vector<Obj> vs vector<shared_ptr<Obj>>. The first results are quite interesting so I thought it is worth to describe thin on the blog. I also think that such test can help me in my particle experiments...

About

Test of memory access patterns to different style of object collections

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages