Skip to content

Optimize: See if we can optimize Java byte array -> [UInt8] mapping some more #478

@ktoso

Description

@ktoso

Today the impl is just a quick naive: allocate native segment, then the array in Swift has to copy the bytes again.

Using [UInt8] at boundaries leads to un-necessary copying; prefer using Data or DataProtocol today.
It would be interesting to get this down to one single call, but we need to get the heap array from java written into native anyway.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions