Skip to content

Tracking issues of Buffer migration #4452

Closed

Description

@Xuanwo

Recently, OpenDAL has transitioned its I/O traits to a Buffer-based approach, which is optimized for both contiguous and non-contiguous bytes input. Additionally, the new Buffer facilitates vectored I/O and is io_uring compatible, enhancing prospects for future development.

However, some code paths convert Buffer back into Bytes, resulting in additional allocations, unnecessary copying, and increased memory usage, thereby negating all the advantages of using Buffer.

This tracking issue addresses all Buffer-related issues. Please comment if you identify any other cases that might cause regression.

All tasks are easy and good-first-issues, please jump in for details.

Tasks

Related

Activity

  1. George-Miao commented on Apr 12, 2024

    @George-Miao
    Contributor

    Is there any particular reason why implementing Iterator directly for Buffer instead of IntoIterator, iter and iter_mut?

  2. Xuanwo commented on Apr 13, 2024

    @Xuanwo
    MemberAuthor

    Is there any particular reason why implementing Iterator directly for Buffer instead of IntoIterator, iter and iter_mut?

    No, this is just for easy implementation. I can't expose to expose too many types to user. We can refine this part later if users find it unsatisfactory.

  3. Xuanwo commented on Apr 27, 2024

    @Xuanwo
    MemberAuthor

    All task has been finised. Closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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