Git Product home page Git Product logo

binder's People

Contributors

lucasmz-dev avatar

Stargazers

 avatar

binder's Issues

Make Binder use a linked-list instead of using an array for it's bindings

Right now, Binder uses an array for it's bindings, and to determine order, that depends on using table.sort for binding, and table.find and table.remove for unbinding, which can be quite slow with multiple bindings, requiring linear search (this could change) and array shifting.

With a (doubly) linked list, I can unbind very quickly, with no big difference of speed when there's multiple bindings, and bind something without array shifting, which is quite nice.

Using a linked list also means being able to finally have immediate signal mode behaviour, (which would allow routine-recycling), which is NOT possible safely with an array.

Another less important thing is that using a linked-list means that the allocation used for setting a binding to a certain index can be freed for other things, so binding 1000 elements at once and then unbinding them later won't cause a permanent memory leak;

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.