Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move UniFile to kotlinx-io FileSystem abstraction #547

Open
revonateB0T opened this issue Dec 27, 2023 · 0 comments
Open

Move UniFile to kotlinx-io FileSystem abstraction #547

revonateB0T opened this issue Dec 27, 2023 · 0 comments
Assignees
Milestone

Comments

@revonateB0T
Copy link
Collaborator

revonateB0T commented Dec 27, 2023

Mostly we use UniFile to

  • Fastly send file (i.e. Linux sendfile syscall ), avoid copying content over JVM heap
  • Common FileSystem functions(lookup children, create new children)
  • Obtain its FileDescriptor and let libarchive do fast extraction
  • Obtain its FileChannel to do DirectByteBuffer based operation

Where okio FileSystem only provide a ByteArray based, Java IO liked interface, no efficient platform IO primitives

Seems kotlinx-io will support these usage
Kotlin/kotlinx-io#241

@revonateB0T revonateB0T self-assigned this Dec 27, 2023
@revonateB0T revonateB0T added this to the TBD milestone Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant