Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

optimization when writing shared_blob data #6501

Merged
merged 2 commits into from
Dec 18, 2018

Conversation

wanderingbort
Copy link
Contributor

Change Description

@taokayan analyzed the cost associated with the resize + memcpy approach to updating these buffers and discovered that resize was very slow. In addition, the default copy constructor for shared_blob had the same issues.

using assign directly in both cases was a clear win.

I've ported these changes from another branch @taokayan shared with so that they can be adopted for the 1.6.0-rc1 pre-release.

Consensus Changes

none

API Changes

none

Documentation Additions

Co-Authored-By: Kayan <taokayan13@gmail.com>
@wanderingbort wanderingbort merged commit f3ec23a into develop Dec 18, 2018
@wanderingbort wanderingbort deleted the feature/port-assign-change branch December 18, 2018 23:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants