- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Image Processors:
Will the performance of the ippi_* functions be significantly different if the image buffers are allocated with "new" rather than with ippiMalloc_* ?
I had assumed NO, but maybe (hopefully) I am wrong.
Please let me know
Chris
Will the performance of the ippi_* functions be significantly different if the image buffers are allocated with "new" rather than with ippiMalloc_* ?
I had assumed NO, but maybe (hopefully) I am wrong.
Please let me know
Chris
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chris,
sometime it does, because of the modern processors can access data faster if particular alignment conditions are met.
And this isthe reason why we indtroducememory allocationfunctions (which provide you aligned memory block)in IPP.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vladimir,
Thank you for your reply. I have written my image class to always provide an image pitch which is a multiple of 32 bytes. In this case, I would expect the behavior of the library to be equivalent whether I call IPP's allocators or "new"
Let me know if I'm off base here.
Thank you,
Chris Griffin
Thank you for your reply. I have written my image class to always provide an image pitch which is a multiple of 32 bytes. In this case, I would expect the behavior of the library to be equivalent whether I call IPP's allocators or "new"
Let me know if I'm off base here.
Thank you,
Chris Griffin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chris,
yes, that's correct. Only difference between CRT malloc/new and ippMalloc is alignment. So, if you provide the same alignment there should not be difference in performance.
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page