Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DON"T REVIEW]TW-459: reduce frames in chat list #466

Closed
wants to merge 1 commit into from

Conversation

sherlockvn
Copy link
Contributor

@sherlockvn sherlockvn commented Aug 16, 2023

Profile mode: run on iphone X

Before refactoring:

RPReplay_Final1692177389.mp4

After refactoring:

RPReplay_Final1692177940.mp4

Conclusion:

The average and max ms/frame before refactoring is lower than after refactoring, so the performance before is better

@@ -79,6 +78,8 @@ class ChatListController extends State<ChatList>

String? activeSpaceId;

final chatListIndexes = <String, int>{};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is it

Copy link
Contributor Author

@sherlockvn sherlockvn Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a method for optimizing the number of rebuild of the chat list when the chat list is reordered

@nqhhdev
Copy link
Member

nqhhdev commented Aug 16, 2023

Your PR is very very hard for me. Plss help me easy for understand more about your PR

@sherlockvn
Copy link
Contributor Author

Your PR is very very hard for me.

describe your problem

@nqhhdev
Copy link
Member

nqhhdev commented Aug 16, 2023

Your PR is very very hard for me.

describe your problem

ADR + video demo

@@ -31,224 +28,200 @@ class ChatListViewBody extends StatelessWidget {
final userSearchResult = controller.userSearchResult;
final client = Matrix.of(context).client;

return PageTransitionSwitcher(
Copy link
Member

@nqhhdev nqhhdev Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you delete it? It's better about performance right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it's better for performance ?. I think currently we don't use the animation, so just remove it for now

@sherlockvn sherlockvn changed the title TW-459: reduce frames in chat list [DON"T REVIEW]TW-459: reduce frames in chat list Aug 16, 2023
@sherlockvn sherlockvn closed this Aug 24, 2023
@hoangdat hoangdat deleted the TW-459/reduce-frame-in-chat-list branch August 30, 2023 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants