enthought / enthought/traits

Maintain a cache in the Adaptation Manager

Open
#456 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
462
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Currently, the adaptation manager does not maintain a cache of protocols and known classes which support the protocols. This leads to issues like #455 where instances of the same class are repeatedly run through the adaptation manager machinery to determine whether or not the class/instance supports the protocol.

The cache could simply be a dictionary -
```
{
InterfaceABC : [ClassA, ClassB],
InterfaceXYZ : [ClassX, ClassZ]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.