-
Note: The performance issue is not the time taken to highlight the file, but to just type in a file with lots of highlighting I would like to brainstorm ideas for how to address it. So far here are the options I have come up with:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
What I see as only/best way to improve the performance is to only regex-scan and apply highlighting to screenarea (i.e. current visible lines ±3xscreenheight). That being said, it is not straight forward - and at same time everything is still limited by TextViews general issues that appear also without any highlighting or something (really just plaintext). Loading 1-5 Megabytes of text is unfourtunatley not what textview is made for. On uber view, realistically the only big performance gain would be to replace textview (®ex based) approach by something completley else. Which means basically throwing away everything. |
Beta Was this translation helpful? Give feedback.
-
At least from TextView and EditText component side, I doubt it makes a relevant difference. At the end, both androidx EditText and TextView still inherit from the normal android.widget EditText & TextView components. |
Beta Was this translation helpful? Give feedback.
-
I am going to attempt this. I think I have a way of doing it which is relatively straightforward. |
Beta Was this translation helpful? Give feedback.
I am going to attempt this. I think I have a way of doing it which is relatively straightforward.