这是indexloc提供的服务,不要输入任何密码
Skip to content

[FEATURE] Remove reflect #2782

@jiyeyuran

Description

@jiyeyuran

Is your feature request related to a problem? Please describe.
I'm always frustrated when working with code that heavily relies on reflect because of its significant performance overhead. Operations like type assertions, object field access, and method invocation through reflect are much slower compared to direct, statically-typed counterparts.

Describe the solution you'd like
I would like to rewrite the relevant parts of the codebase to use generics instead of reflect. Similar to how the livekit/psrpc project uses generics to avoid reflect in its Protobuf.

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