Skip to content

Optimize str::unsafe::slice_bytes #1995

@brson

Description

@brson

This function is used all over the str module. It should be compile to a malloc + memcpy, but currently it uses vec::slice, which is copies elements one at a time calling take glue on each.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions