Skip to content

Slow init #503

Description

@quolpr

Hey! I was testing mobx-keystone performance, and I am curious is there any way to optimize the speed of models creation? I made some tests here

https://codesandbox.io/s/mobx-keystone-slow-init-bcujed?file=/src/index.ts

And 100k model creation looks not so good:
image

I also made a simple mobx example, but of course, it doesn't compare with mobx-keysone itself. But it would be great to have the same performance as mobx has, like 100k creation in 300ms.

P. s.: to see real numbers, you need to open chrome devtools. CodeSandbox console is not reliable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions