Giter Site home page Giter Site logo

adapters's People

Contributors

fabricedesre avatar

Watchers

 avatar  avatar

Forkers

cr fabricedesre

adapters's Issues

Handle saving/loading the set of tags

For the moment, tags live only in memory. We should be able to save them to disk. Basically, each id may be associated to a list of strings.

This means adding to manager::AdapterManager methods

pub fn load(&self, path: String) -> Result<(), Error>;
pub fn save(&self, path: String) -> Result<(), Error>;

Then, when we perform the internal calls to add_service, add_getter or add_setter, we should check in the in-memory list to find out if the service/getter/setter has tags waiting for it.

I'm not sure about the error type.

In a followup issue, we'll think about saving tags as they are added/removed, or associating tags to

Optimize selectors by tags

We currently do not attempt to optimize selectors by tags. We should. For this purpose, we need to maintain tables service_by_tag, getter_by_tag, setter_by_tag – and use them.

Introduce a built-in fake adapter

This would be very useful for combining real devices and simulated devices for tests.

As a bonus, we can basically reuse the code already present in tests/ for that.

Optimize selectors by ChannelKind

We do not attempt to optimize selectors by ChannelKind. We should. For this purpose, we would need to maintain tables getter_by_kind and setter_by_kind – and use them.

Optimize selectors by Id

Some selectors search by id. This could be optimized trivially, since we have maps indexed by id.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.