PatrickKennedy/pygab

Hook mounts aren't factored enough, or NO MORE LOC ATTR

Opened this issue · 0 comments

The additional overhead incurred by having a single mount for hooks and then iterating over all hooks for each process is unnecessary. Instead, defining a separate class for each mount for hooks to inherit would mean iterating over just the hooks we care about.

Additionally, this would simplify the framework for the plugin developer. Where a typo (or changed constant) may lead to wasted time figuring out why a hook isn't triggering Python would throw an import error if a mount didn't exist.