Skip to content

Cache Class::get #65

Closed
Closed
@grovesNL

Description

@grovesNL

Currently gfx spends a significant amount of time calling Class::get.

Similarly to #64, would it be possible to cache these calls somehow? Perhaps there could be a macro that provides this, like class!("NSObject").

We could try to add this to metal-rs directly for the places we need it (example), but we also need this change in other crates (for example, we frequently create NSAutoreleasePool), so it would be great if we could find a way to add this into objc.

cc @kvark @jrmuizel

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