Git Product home page Git Product logo

Comments (7)

vhmth avatar vhmth commented on July 21, 2024 1

In Opentest's Chrome extension, we send updates of the audio stream frequency data if our audio visualizer bar is showing in the UI.

screen shot 2016-08-09 at 10 51 00 am

The delta of the state is small (just one byte array of length the number of bars in the visualizer), but the updates are very frequent. Just leaving this here for myself so I can look at the performance impact from the dev console to see how the following two things are impacted as the state size grows/shrinks:

  1. Serializing/deserializing the state.
  2. Latency of sending the state over the port object.

We should actually make sure that diff-ing the object makes sense and doesn't itself introduce unnecessary overhead. The reason it works for react to diff DOM updates is because the DOM itself is slow. We simply have to validate that here with larger messages over the port object.

from webext-redux.

tshaddix avatar tshaddix commented on July 21, 2024

Sounds like a great test case. Looking forward to seeing the results.

I couldn't agree more with you. We definitely shouldn't implement this willy-nilly. We should test this proposal against multiple use cases (frequency and state size).

from webext-redux.

sidoruk-sv avatar sidoruk-sv commented on July 21, 2024

Found some analog for this:
https://github.com/ivantsov/redux-webext

from webext-redux.

tshaddix avatar tshaddix commented on July 21, 2024

@sidoruk-sv Do you mind expanding on your comment a bit more? From what I can tell, that package uses the same method as react-chrome-redux.

from webext-redux.

sidoruk-sv avatar sidoruk-sv commented on July 21, 2024

@tshaddix oh, I see, thought they implement lightweight messages to background's store, but now I see that it's very similar to this library, i'm sorry)
Will try to use your library for my pet project. Thank you for comment!)

from webext-redux.

vhmth avatar vhmth commented on July 21, 2024

@sidoruk-sv if you'd like to see an extension in the wild that uses this library, check out the Openvid extension:

https://chrome.google.com/webstore/detail/openvid-screen-recorder-c/liecbddmkiiihnedobmlmillhodjkdmb

from webext-redux.

tshaddix avatar tshaddix commented on July 21, 2024

Included in #100

from webext-redux.

Related Issues (20)

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.