Code Monkey home page Code Monkey logo

Comments (13)

alump avatar alump commented on September 23, 2024

Initial render time? Or is updating also slow?

Try to use CSSLayouts inside GridStackLayout to improve speed. Any Vertical/Horizontal/GridLayouts will cause slowness fast inside dynamic layouts.

Please provide your component hierarchy structure.

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

Only initial render time.. once the screen is rendered everything works pretty close to good

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

This is my component hierarchy structure:

components_tree

from gridstack.

alump avatar alump commented on September 23, 2024

Try to get rid of layouts with only have one child.

Eg. you have many VerticalLayouts with just one HorizontalLayout as child. Why not remove the unneeded vertical layout. If you need to do some wrapping, use CSSLayout.

Vertical/Horizontal/GridLayout do some JavaScript based delayed layouting. So more you have those, slower it gets.

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

Thanks for your answer! As you can see at the picture below - I have replaced nested layouts of GridStack with CssLayout:

css_layout

but the performance still pretty much the same as bad :(

from gridstack.

alump avatar alump commented on September 23, 2024

So no measurable difference?

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

Unfortunately I don't know how to measure exact time of client side rendering with Vaadin but visually I can't see any major difference.. the rendering still takes a lot of time.

With 10 elements inside of central GridStack my view renders pretty fast.. but with 80 elements pretty slow..

from gridstack.

alump avatar alump commented on September 23, 2024

If you only have csslayouts with images, links, labels and buttons there, then I'm not quite sure what makes it so slow.

Would help if you could create simple code example, that I could use to reproduce the issue.

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

I noticed right now that different buttons/links/images creation inside of elements that are placed inside of GridStack make it slow. I have disabled a few types of buttons/links and this improved the performance of view rendering. Right now performance is not perfect but much better. How buttons can affect performance ?

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

I have sent you a demo project. Thanks !

from gridstack.

alump avatar alump commented on September 23, 2024

I have to try it out

from gridstack.

Artgit avatar Artgit commented on September 23, 2024

Thanks for your help! I'm really stuck right now with this performance issue of my application :(

from gridstack.

rami-alloush avatar rami-alloush commented on September 23, 2024

Are there any recommendations regarding this?

from gridstack.

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.