[patch] enable use of refcount policy for ext_data
Jules Bergmann
jules at codesourcery.com
Wed Sep 28 19:07:31 UTC 2005
Comparing our vector-add performance (using IPP) against IPP directly
showed that we had some overhead for small vector sizes (for vector
sizes less than 1024 elements, our red line falls below IPP's green
line). This overhead appears to be from incrementing and decrementing
reference counts for the blocks being used. This is being done by
Ext_data when getting a pointer to the block's data to pass to IPP.
Ext_data takes a policy template parameter to indicate whether reference
counting should be done, but it was being ignored and reference counting
always done.
This patch adds a mechanism to View_block_storage to hold a reference
using according to a reference-counting policy.
With this patch, our performance (blue line) is closer to IPP for small
vector sizes.
Patch applied.
-- Jules
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rp.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20050928/38be0f70/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vmul.png
Type: image/png
Size: 7872 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20050928/38be0f70/attachment.png>
More information about the vsipl++
mailing list