eclipsesource / eclipsesource/tabris-js

Problem with CollectionView Part 1

Open
#2,143 1 comment 0 reactions 0 assignees View on GitHub
android bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

>

### Problem description

Hello everyone, i noticed 3 problems on TabrisJs CollectionView. this is the first problem

Since version 3.4+ the CollectionView is not as fast as before, there's clearly a loss of performance, I compared my collectionView of image and text list (the picture below) and it's much slower than the collectionview of applications like Whatsapp, Telegram (which has the fastest CollectionView in the world), despite the optimizations made on my images (resizing to the exact dimensions of the view, etc...).
please, please, please can you still optimize CollectionView(recycleView) on Android? it's one of the most used widgets in the world and it's a big weakness for Tabris.

Here are some links I found if it can help you on how to optimize RecyclerView and especially the source code of Telegram's RecyclerView, inside it mentions what makes it so fast.

https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/ui/Components/RecyclerListView.java

https://stackoverflow.com/questions/44988515/recycler-view-laggy-behaviour (this link shows how Telegram fixed the problem of the first slow scroll on the RecyclerView)

https://heartbeat.fritz.ai/adding-fast-scroll-to-recyclerview-in-android-5a963e2b509d
another link for scroll optimization on a RecyclerView.
![Screenshot_20210209-125145](https://user-images.githubusercontent.com/12398336/107361281-6d591680-6ad7-11eb-8505-a1a801688121.jpg)

### Expected behavior

Fast recyclerView

### Environment

- Tabris.js version: 3.8 last Nightly
- Device: Huawei P10 Lite, 3GB RAM, Octo-core 2.3Ghz
- OS: Android 8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.