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

Use Slice(UInt8)#fill in the standard library #11468

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

HertzDevil
Copy link
Contributor

With the memset optimization available in the standard library since 1.2.0, this PR replaces several direct calls to Intrinsics.memset with Slice(UInt8)#fill.

(They all happen to fill some String's buffer with ASCII characters.)

@straight-shoota straight-shoota added this to the 1.3.0 milestone Nov 20, 2021
@straight-shoota straight-shoota merged commit 5f8f4fb into crystal-lang:master Nov 23, 2021
@HertzDevil HertzDevil deleted the refactor/slice-fill branch November 29, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants