Comments (8)
@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.
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.
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.
@dockimbel I think it's OK to do the changes.
from red.
Here it works, the slowness has disappeared!
from red.
Fixed the lock issue. I don't think we can fix the slowness.
from red.
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.
Fix merged to master. Let us know if any regression on area
behavior occurs on Windows platform.
from red.
Related Issues (20)
- [Regression] More aftershocks from #5253 HOT 6
- [Regression] CLI console cannot be built for FreeBSD target HOT 1
- Cortex XDR has blocked a malicious activity when trying to run https://static.red-lang.org/dl/auto/win/red-view-23jun24-583744106.exe HOT 2
- [View] `alt` flag is unreliable HOT 1
- case, case/all and their returning values HOT 5
- [View] `down` flag discrepancies during clicks
- [View] `over` events order is non intuitive HOT 4
- CSV decoder should raise its errors HOT 3
- Redbin save time varies by 8 times HOT 2
- Parse: thru any vs. thru some
- [View] Platform differences in key events HOT 1
- Why does the output of the pwd function not have a line break effect in the gui console? HOT 2
- Adding single quotes before or after the decimal point does not result in an error.
- #call causes crashes in some cases HOT 1
- Plenty of ways to accidentally break object's `on-change*` HOT 3
- [View] `base` transparency support depends on init conditions HOT 1
- Selection on series with `path!` is undefined/untested HOT 3
- Tired of tripping on set-words coming from the map! HOT 1
- MacOS binaries not found (404 on website) HOT 2
- [Compiler] `return` escapes `try/all` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from red.