Giter Site home page Giter Site logo

Comments (8)

dockimbel avatar dockimbel commented on July 22, 2024 1

@qtxie Commenting this scrollbar updating fixes the slowness issue. We need a better way to update the scrollbars in such case. Maybe only when a new row is created/deleted? Or better when the scrollbar receives the focus?

There's also an excessive GC triggering caused by reactivity handling on that same event. It does not seem to affect UI performance, but it's still annoying to see a GC pass on almost every key stroke inside such overloaded area widget...

from red.

dockimbel avatar dockimbel commented on July 22, 2024 1

Actually, the area seems to be fine without that update-scrollbars code except for switching on/off the scrollbars automatically, that is then lost. It should be possible to have a lightweight solution for such need in the area case... Maybe have it set by the user as a face flag?

from red.

dockimbel avatar dockimbel commented on July 22, 2024 1

Pushed a fix in this branch.

This is a proposed temporary fix until object! gets an 'on-get event (which would allow updating the facet in a lazy way). @qtxie Please review it and let me know your opinion.

  • Removes the slow call to update-scrollbars (auto-activation of scrollbars disabled, we need a solution for that).
  • Adds a new no-sync flag to disable auto-sync of /text facet.
  • Use system/view/platform/update-text <face> to force updating of /text facet with the GUI widget text content.

I've tested it successfully with the above test code with following additions:

view [
    z: area area-text 500x500 with [flags: 'no-sync]
    button "Sync" [system/view/platform/update-text z]
]

from red.

qtxie avatar qtxie commented on July 22, 2024 1

@dockimbel I think it's OK to do the changes.

from red.

GiuseppeChillemi avatar GiuseppeChillemi commented on July 22, 2024 1

Here it works, the slowness has disappeared!

from red.

qtxie avatar qtxie commented on July 22, 2024

Fixed the lock issue. I don't think we can fix the slowness.

from red.

GiuseppeChillemi avatar GiuseppeChillemi commented on July 22, 2024

Fixed the lock issue. I don't think we can fix the slowness.

Hope you can do something as I have actually reached the ceiling. The documents I am working on are more than 1MB and the area is quite unusable.

from red.

dockimbel avatar dockimbel commented on July 22, 2024

Fix merged to master. Let us know if any regression on area behavior occurs on Windows platform.

from red.

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.