Skip to content

Implement Session Reuse in NullDriftCrewStorage #94

@CodNoob100

Description

@CodNoob100

Currently, the NullDriftCrewStorage class in nulldrift_agents.py opens a completely new with httpx.Client() as client: context block for every single save() and search() call. Optimize this by instantiating a persistent self.client = httpx.Client() in the __init__ method to reuse the TCP connection (HTTP Keep-Alive), which will significantly reduce network latency during high-frequency agent actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededpythonPull requests that update python code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions