Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete copy_memory function #175

Merged
merged 1 commit into from
Mar 19, 2018
Merged

Delete copy_memory function #175

merged 1 commit into from
Mar 19, 2018

Conversation

kinggoesgaming
Copy link
Member

I'm submitting a ...

  • bug fix
  • feature enhancement
  • deprecation or removal
  • refactor

Description

Replace uuid::copy_memory with <[_]>::copy_from_slice

Motivation

core already provides a good optimized version of slice copying function, so we dont need to create our own duplicate code.

Tests

Our tests and benchmarks are running good, other than one or two runs which suggest a 1-2 nanosecond slowdown.

Related Issue(s)

#173

`<[_]>::copy_from_slice` is a better replacement

Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
@kinggoesgaming kinggoesgaming added this to the 0.6.2 milestone Mar 19, 2018
@kinggoesgaming kinggoesgaming self-assigned this Mar 19, 2018
@Dylan-DPC-zz
Copy link
Member

bors: r+

bors bot added a commit that referenced this pull request Mar 19, 2018
175: Delete copy_memory function r=Dylan-DPC a=kinggoesgaming

<!--
    As we are working towards a stable version of uuid, we require that you 
    open an issue, before submitting a pull request. If the pull request is 
    imcomplete, prepend the Title with WIP: 
-->

**I'm submitting a ...**
  - [ ] bug fix
  - [ ] feature enhancement
  - [x] deprecation or removal
  - [x] refactor

# Description
Replace `uuid::copy_memory` with `<[_]>::copy_from_slice`

# Motivation
`core` already provides a good optimized version of `slice` copying function, so we dont need to create our own duplicate code.

# Tests
Our tests and benchmarks are running good, other than one or two runs which suggest a 1-2 nanosecond slowdown.

# Related Issue(s)
#173
@bors
Copy link
Contributor

bors bot commented Mar 19, 2018

@bors bors bot merged commit 3533e5d into master Mar 19, 2018
@kinggoesgaming kinggoesgaming deleted the copy-from-slice branch March 20, 2018 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants