Skip to content

[Question] Does this library clone the state on each change? #1

@acelot

Description

@acelot

Hi, found your library on Google search output. Could you please explain how the state management works in terms of memory consumption? I have an application with more than 50 fields in state (Vec's, HashMap's, etc), and my current approach of state management is based on tokio::sync::watch::channel. On each change in my state I need to clone the whole state and send it through the watch::channel. It's very expensive when application is working long time.

Does your library cope with such problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions