Skip to content

jextract: Find ways to minimize string copying when passing Java String to Swift #202

Open
@ktoso

Description

@ktoso

We could consider if we never escape the Swift string or maybe also look into https://download.java.net/java/early_access/jdk24/docs/api/java.base/java/lang/foreign/Linker.Option.html#critical(boolean) if for some opt-in methods we could avoid copying.

We may also consider another JavaString type which would implement StringProtocol and we would avoid creating a real String in the Swift side which today forces another copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jextract-swiftIssues related to jextract-swift

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions