question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<ListView> is very slow comparing to NS Core

See original GitHub issue

Version

2.4.0

Reproduction link

https://play.nativescript.org/?template=play-vue&id=KhyRrD

Platform and OS info

iOS 12/13, Android 8/9, NS Playground

Steps to reproduce

Open the playground https://play.nativescript.org/?template=play-vue&id=KhyRrD.

This project has 2 listviews linked to the same dataset. The one on the right is more complex because it uses different <v-template> and a <GridLayout> for some cells.

Notice that the list view is sluggish, especially the right one.

What is expected?

The ListView should scroll smoothly.

I created an NS Core project with the same dataset and the same UI here: https://play.nativescript.org/?template=play-tsc&id=KkPYYX.

See how smooth it scrolls!

What is actually happening?

On NS-Vue, the ListView scroll is very sluggish compared to the NS Core ListView.

I tested on both Android and iOS devices. The same thing happens: NS Core is smooth, NS-Vue is slow.


The NS-Vue wrapper is doing something that kills the ListView performance. I will start looking at this issue, but I think I’ll need the experts on this one.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
tralvescommented, Oct 31, 2019

thank you for the test, @shirakaba! You are right, it works fine on React NS…

(I secretly wished it didn’t because Vue is bae and then there would be more people looking into it 😛)

1reaction
tralvescommented, Nov 5, 2019

Thanks to everyone here helping me turning to the right direction. Peeking at @shirakaba’s React implementation was key, though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

My C# ListView Compare Function is too slow - Stack Overflow
The ListView holds about 2000 entries and the problem is that it's very slow. What am I doing wrong? Any ideas? Thanks in...
Read more >
[RESOLVED] Slow performance with ListView - VBForums
I'm using a detail view ListView component to display a DataTable. Currently I'm going through each row of the table, adding items 1...
Read more >
ListViewItemSorter: why so slow? - MSDN
Why ListView initial sorting speed so slow? The ListViewItemSorter property is not set at the step 1, but the speed is similar to...
Read more >
Poor performance in data binding using ngFor (nested) even ...
I use listview for rendering one 2 levels array. First time i made something like you, NGFOR and inside of NGFOR Item another...
Read more >
Nativescriptvue Rendering Radlistview Very Slow Under ... - ADocLib
NativeScriptVue is licensed under the MIT license On NSVue the ListView scroll is very sluggish compared to the NS Core ListView.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found