Skip to content

Suggestion: use gettext-sys directly to avoid allocations #18

@ajtribick

Description

@ajtribick

The wrapper functions in gettext-rs have to allocate CStrings on each call due to the interface of the underlying C library.

It may be interesting to use something like what the cstr! macro in the cstr crate does to append the trailing zero byte at compile time and pass the result directly to the gettext-sys functions, avoiding the intermediate allocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions