Giter VIP home page Giter VIP logo

Comments (6)

hanspagel avatar hanspagel commented on September 26, 2024 1

THANKS for sharing! We’ll look into this. Any chance you can share the file with us? [email protected]

from scalar.

ad-on-is avatar ad-on-is commented on September 26, 2024 1

https://adisdurakovic.com/scalar-big.yml

I replaced some model names with Disney characters, to not give out too much real data.

from scalar.

lrstanley avatar lrstanley commented on September 26, 2024 1

Testing 1.25.10 and the particular spec with an issue (now about 49K LOC), it has better performance on initial load, however hitting the Test Request button for one of our endpoints causes the browser to say the tab hung, and if I leave it for about 60 seconds, the popup to test the request finally renders. I'll see if I can get an obfuscated version for you.

Update:

Spec URL, some of which has been truncated, but I think it still has the necessary amount of info: https://cdn.liam.sh/misc/examples/openapi-truncated-scalar.json

Example page using 1.25.10, linking to an example endpoint -- if you hit Test Request, you will notice performance issues:
https://cdn.liam.sh/misc/examples/scalar-performance.html#tag/identities/GET/identities

Video also showing this -- this is my high-end personal desktop (16 cores and 64GB of RAM), so it's not terrible, but you'll notice the animation latency when hovering over items on the side, in addition to the delay with test request:

https://cdn.liam.sh/share/2024/09/zen_mspDGu1fr7.mp4

In our work environment, on lower performance laptops, virtual desktops, etc, the performance is terrible (60s+, tab crashing, etc).

from scalar.

lrstanley avatar lrstanley commented on September 26, 2024

Running into browser tab crashes/hanging when testing with an openapi.json with about ~30K LOC.

In the past with other editors and viewers, this was easily solved/performance drastically improved by rendering tag sections in their own view/page, rather than all on a single view/page. Are there any plans to potentially have a mode for scalar where you could configure that?

Right now, with ~30K LOC, the initial load isn't as big of an issue, but when I select a specific endpoint and it auto-opens the entire models section, is where it goes downhill very fast.

from scalar.

hanspagel avatar hanspagel commented on September 26, 2024

Is that still the case with the latest version? Would be great if you could give it a try.

And is your OpenAPI document public? So great to have more real-world examples.

from scalar.

hanspagel avatar hanspagel commented on September 26, 2024

Awesome, thanks for sharing this! We should be able to improve this.

from scalar.

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.