Skip to content

Immer 7 is 8 times slower than immer 6 #681

@lpatiny

Description

@lpatiny

🐛 Bug Report

We have a (too) complex open source project that allows to display scientific data https://github.com/cheminfo/nmr-displayer

Going from immer 6.0.9 to immer 7.0.9 slow down the vertical scale of spectra (mouse wheel) by a factor 8 !

Link to reproduce

Here are 2 links:

Version build with immer 7.0.9:

https://www.nmrium.org/v0.3.3/#/SamplesDashboard/afp2vszl3kj/cytisine2dhttps:wwwnmriumorgdatacytisine2dhsqcjson?sampleURL=https%3A//www.nmrium.org/samples.json#/

Version build with immer 6.0.9

https://www.nmrium.org/v0.3.5/#/SamplesDashboard/ul8f8s4969/undefinedcytisine2dhttps:wwwnmriumorgdatacytisine2dhmbc-onlyjson?sampleURL=https%3A//www.nmrium.org/samples.json#/

In attachments videos displaying the difference of speed Archive.zip

To Reproduce

Click on the link and you may zoom on this area

image

Then you may use the scroll button on the mouse to vertically scale the spectrum. You will see that version 6 is 8 times faster than version 7. This can be confirmed in the google chrome performance tab.

Observed behavior

Version 7 is 8 times slower than version 6

Expected behavior

speed should be the same in version 6 and 7

Environment

Google chrome

  • Immer version:
  • I filed this report against the latest version of Immer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions