Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC - Create a wrapper to HandleTrie in python #79

Closed
andre-senna opened this issue Aug 14, 2024 · 0 comments · Fixed by #96
Closed

PoC - Create a wrapper to HandleTrie in python #79

andre-senna opened this issue Aug 14, 2024 · 0 comments · Fixed by #96
Assignees
Labels

Comments

@andre-senna
Copy link
Contributor

andre-senna commented Aug 14, 2024

EPIC

HandleTrie is a class implemented in C++ here: https://github.com/singnet/das-attention-broker/blob/master/src/attention_broker_server/HandleTrie.h

It's basically a hashmap to map from atom's handle (MD5 hash string) to a generic object.

We want to build a wrapper to this class in python in such a way that when the python class is instantiated, it uses the C++ implementation. In this case, the hashmap will map from handle -> Dict[str, any]

The result of the PoC is a report comparing performance of:

  • (a) A C++ program adding and making queries to HandleTrie
  • (b) A Python program adding and making queries to the python wrapper of HandleTrie
  • (c) A Python program adding and making queries to python's dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants