Open main menu

CDOT Wiki β

Changes

Team Darth Vector

565 bytes added, 22:21, 14 December 2017
added faq for the comparison
As the table suggests, completing push back operations using tbb's concurrent vector allows for increased performance against a serial connection.
TBB additionally provides a benefit that it will never need to resize the vector as pushback operations are completed.
In stlSTL, the vector is dynamically allocated which requires it to reallocate and copy memory over which may further slow down the push back operation.
===Why was TBB slower for Int?===
TWhen dealing with primitive types like int, the actual operation to push back is not very complex; meaning that a serial process can complete the push back quite quickly. The vector can also likely hold a lot more data before requiring to reallocate its memory. TBB's practicality comes when performing a more complex action on a primitive type or from a simple action on a more complex type. Parallel overhead(the resources required to support tbb in parallel) may also increase the time required which could be the cause of the slowdown in the above comparison.
==Business Point of View Comparison for STL and TBB==
129
edits