Skip to content

Reconsider usages of unsafe #18

@aochagavia

Description

@aochagavia

Resolvo currently has 13 unsafe blocks. They are related to two things:

  • Getting stuff from a slice / vec without bound checks;
  • Implementing FrozenCopyMap.

Since this is a pretty foundational library, I think we should strive to either avoid using unsafe entirely or otherwise make sure to have the appropriate infrastructure to prevent errors (e.g. running tests under miri, fuzzing, etc).

@baszalmstra any thoughts on this? I assume the unsafe that has been introduced was due to performance optimizations. Did it provide a measurable improvement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions