Skip to content

How to release the memory of vsg::Array? #1276

Closed Answered by robertosfield
jacky-wang7 asked this question in Q&A
Discussion options

You must be logged in to vote

The VSG uses the vsg::Allocator class to do block allocation with affinity between allocation types so similar object/data types get allocated in the same blocks of memory. This is done to improve runtime performance and can make a big difference for applications that are bandwidth limited - real-time graphics is huge bandwidth hog even on the CPU so it's crucial for getting best performance.

I recently improved the internal implementation to speed up allocations/deallocations and wrote up this work on this forum. This thread should also give you an idea what it's all about along with performance metrics: #1228

So in your case the vsg::Array and it's allocated data will be allocated in a …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jacky-wang7
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants