Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

优化使用引用计数器数据的ffi传输 #11

@LaoLittle

Description

@LaoLittle

AtriBot内有很多Arc wrapper, 比如Client, Group, Friend...

他们的数据转移到插件的时候会先转换为Managed结构体
该转换包含了一次堆分配, 而Arc本身就是将数据存入堆中的(也就是变成了Box<Arc>)

考虑添加ManagedArc, 使用Arc::into_rawArc::from_raw, 减少堆分配(释放)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions