concrete-python
concrete-python copied to clipboard
The containers in comm_container.py should implement __contains__
If they don't, getitem is called twice. When using the fetch wrapper one, it ends up calling the remote service twice per request. This is because of the way CommunicationContainerFetchHandler is implemented where it first tests if the item is in the mapping and then retrieves it. Another option is to change this handler's implementation to try to access and handle the error if it is not there.