Giter VIP home page Giter VIP logo

Comments (5)

Hona avatar Hona commented on June 5, 2024

Hey, I had similar problems, but mainly with how long it took to blur from a field (approaching 800ms for a simple state update)

Dev Tools is the culprut. 2 main causes, the stack trace & the json serialiser.

Make sure you have the following as I have and let me know if it works:

options.UseReduxDevTools(rdt =>
{
    // Not sure if this one is needed
    rdt.Latency = TimeSpan.FromSeconds(1); // Default 50, maybe improves dev tool perf
    
    rdt.UseSystemTextJson(_ =>
	    new System.Text.Json.JsonSerializerOptions
	    {
		    PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase
	    }
    );
    //rdt.EnableStackTrace();
});

from fluxor.

Hona avatar Hona commented on June 5, 2024

Okay I did more testing. You can keep the stack trace & default Latency. STJ is the only change needed for my perf fix.

from fluxor.

mrpmorris avatar mrpmorris commented on June 5, 2024

Changing the PropertyNamingPolicy sped it up?

from fluxor.

Hona avatar Hona commented on June 5, 2024

In my Blazor app there was a massive slowdown with default dev tool settings or explicitly saying use Newtonsoft.

When I changed the serialised to use SystemTextJson it went away. The naming policy is just extra.

from fluxor.

mrpmorris avatar mrpmorris commented on June 5, 2024

Only STJ is supported as of V6

from fluxor.

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.