Giter Site home page Giter Site logo

Comments (6)

MatheusAVZ avatar MatheusAVZ commented on June 16, 2024 4

Hey, i have the same problem, the VSCode Intellisense slows down with @gluestack-ui/themed imports

  • "@gluestack-style/react": "latest",
  • "@gluestack-ui/config": "latest",
  • "@gluestack-ui/themed": "latest",

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

from gluestack-ui.

DavidAmyot avatar DavidAmyot commented on June 16, 2024 2

Can you try the latest versions of @gluestack-style/react and @gluestack-ui/themed? Also let me know the diagnostics after the update. It has reduce for me.

No, it did not get better.

Before with my current version:

"@gluestack-style/react": "^1.0.54",
"@gluestack-ui/config": "^1.1.18",
"@gluestack-ui/themed": "^1.1.22",

Files:             1903
Lines:           242215
Identifiers:     332356
Symbols:         976070
Types:           130501
Instantiations: 5812682
Memory used:    769854K
I/O read:         0.05s
I/O write:        0.00s
Parse time:       0.78s
Bind time:        0.21s
Check time:      29.92s
Emit time:        0.00s
Total time:      30.92s

After updating to latest:

"@gluestack-style/react": "^1.0.56",
"@gluestack-ui/config": "^1.1.18",
"@gluestack-ui/themed": "^1.1.24",

Files:             1902
Lines:           242345
Identifiers:     332238
Symbols:         969236
Types:            57002
Instantiations: 4413032
Memory used:    725270K
I/O read:         0.12s
I/O write:        0.00s
Parse time:       0.86s
Bind time:        0.21s
Check time:      29.43s
Emit time:        0.00s
Total time:      30.50s

@ankit-tailor This is 30 seconds for running the diagnostics.. In another project we have for our react frontend website with mui that has twice the amount of files it takes 1.67s. From what I can see from the diagnostics, the amount of types and instantiations is immense compared to if I don't have gluestack installed. Could it be because of some kind of over usage of generic types?

I'm at the point where in our code when I make changes in a file that has gluestack imports I just use the reload window command with vscode instead of waiting because the intellisense is way too slow.

from gluestack-ui.

huix9527 avatar huix9527 commented on June 16, 2024 2

Similar issue, tsserver gets very slow after importing gluestack.
"@gluestack-style/react": "^1.0.52",
"@gluestack-ui/config": "^1.1.18",
"@gluestack-ui/themed": "^1.1.22",

npx tsc --diagnostics --noEmit
Files: 1298
Lines: 179610
Identifiers: 164305
Symbols: 809868
Types: 136352
Instantiations: 4853127
Memory used: 628113K
I/O read: 0.18s
I/O write: 0.00s
Parse time: 0.81s
Bind time: 0.21s
Check time: 17.78s
Emit time: 0.00s
Total time: 18.81s

from gluestack-ui.

ankit-tailor avatar ankit-tailor commented on June 16, 2024 2

Hi Everyone, we are working on it to fix it ASAP. Thanks for your patience.

from gluestack-ui.

ankit-tailor avatar ankit-tailor commented on June 16, 2024

Can you try the latest versions of @gluestack-style/react and @gluestack-ui/themed? Also let me know the diagnostics after the update. It has reduce for me.

from gluestack-ui.

DavidAmyot avatar DavidAmyot commented on June 16, 2024

@ankit-tailor Any update on this? Anyone else in the gluestack team has this issue?

from gluestack-ui.

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.