a free (libre) open source, mobile OS for Ethereum https://status.im
Go to file
Icaro Motta 037e71bc03
Optimize opening of Settings screens (#19940)
This commit rewrites utils.re-frame/delay-render to use hooks. The new
implementation renders significantly better than what we have today, at least on
Android.

Why not hiccup instead of a function call to delay-render? The Settings screen
is rendered slightly faster if I use delay-render as a function call instead of
hiccup. My only guess is that this is just less work to be done by Reagent,
since the wrapper function is not creating a wrapper component with its own
lifecycle.

The full analysis can be found here, but it's copied for future reference:

--------------------------------------------------------------------------------
Based on my analysis of individual frames being rendered and having investigated
3 different scenarios:

1. Scenario 1: No delay whatsoever, i.e. not using `delay-render`.
2. Scenario 2: Using `delay-render` like in `develop`, that is, a form-2
   component with a local Reagent atom.
3. Scenario 3: Using `delay-render` as in this PR, using hooks.

All 3 scenarios open the Settings screen with all rendered views in the same
amount of time. In terms of raw performance, they are completely identical. The
absolute value doesn't matter, but in my recordings, on average, 10 frames of
video after the first press on the user's profile image.

So how can it be that on Android the new solution is visibly smoother? It's all
about latency and our brains are very picky about it.

Scenario 1 - Not using delay-render: the user notices a longer delay after
pressing on the profile image because all components in the Settings screen are
mounted in one go. This gives the impression to the user of being slower. In
slower Android devices, we've seen a user even press twice because the Settings
screen was taking longer to open. On newer Android devices this is not much of a
problem. There's another problem in `Scenario 1`, on Android, with too many
elements and/or too many heavy elements being mounted, the opening animation is
sometimes completely cut off or very clunky (a similar problem can happen while
opening the Activity Center).

Scenario 2 - Use delay-render with a form-2 component: The Settings items are
always rendered after the opening animation completes. Our brains perceive this
as a slight delay because we can see the empty gray background for 1-3 frames.
This is quite noticeable on my physical Android device, even with a prod build.

Scenario 3 - Use delay-render as a hook: the optimal solution from the user's
perspective, Settings items sometimes can be rendered before the animation
completes. I say sometimes because other times the items are rendered only 1
frame before or right when the animation completes, which would be almost the
same as Scenario 2.

What the hooks solution gave us is a little bit of the Scenario 1 and
Scenario 2 in one package, and because the Settings items can be sometimes
rendered before the opening animation completes, our brains see that as being
faster.

In future performance investigations, we might want to focus on manipulating
latency more aggressively to see where that leads us.
2024-05-10 12:43:08 -03:00
.clj-kondo Upgrade clj-kondo to 2024.03.13 (#19930) 2024-05-09 12:04:31 -03:00
.dependabot [Fixes: #11518] Fix dependabot directory 2020-12-07 12:14:16 +01:00
.github Adjust PR template to add before/after (#17402) 2023-09-25 13:42:37 +03:00
.lsp chore: add lsp clean-ns in lint-fix (#17661) 2023-10-18 00:17:43 +08:00
.vscode Document how to auto-format Clojure files in VSCode with zprint (#17719) 2023-10-25 23:19:56 -03:00
android chore: pin cmake version (#19865) 2024-05-03 13:52:26 +05:30
ci ci: use virtualenv to avoid race conditions 2024-04-16 13:13:53 +03:00
doc pipleine: update doc 2024-04-18 15:31:47 +01:00
fastlane fix: location of logs generated by fastlane 2024-04-22 10:07:06 +02:00
ios chore: add wallet connect library (#19758) 2024-05-08 05:51:45 -03:00
logs upgrade nixpkgs to 23-11 (#19369) 2024-04-01 16:26:44 +05:30
maestro init: maestro dev automation (#18712) 2024-02-06 23:29:35 +05:30
modules/react-native-status fix: hack fix for contract tests on MacOS (#19965) 2024-05-10 17:58:49 +05:30
nix fix: hack fix for contract tests on MacOS (#19965) 2024-05-10 17:58:49 +05:30
patches [iOS] enable new architecture for react-native (#19748) 2024-04-30 14:08:41 +05:30
resources updated invite friends banner image 2024-05-07 15:48:44 +02:00
scripts Feature/remove reagent atom from theme (#19706) 2024-04-18 16:14:17 +02:00
src Optimize opening of Settings screens (#19940) 2024-05-10 12:43:08 -03:00
test Persist in-app feature flags (dev-only feature) (#19619) 2024-05-09 09:42:38 -03:00
test-resources Update prettier config for the project. (#16303) 2023-06-19 19:09:12 +05:30
translations Add screen for key-pairs and accounts inside wallet settings (#19912) 2024-05-10 10:53:35 +01:00
.buckconfig upgrade react-native and packages - but broken 2016-04-24 15:07:08 +07:00
.carve_ignore FINAL BOSS! rename status-im2 to status-im (#18241) 2023-12-19 20:59:07 +01:00
.dockerignore Create Nix package for building status-go 2019-04-09 12:44:39 +02:00
.env fix alert banner issues (#19773) 2024-04-29 21:56:41 +05:30
.env.e2e fix alert banner issues (#19773) 2024-04-29 21:56:41 +05:30
.env.jenkins fix alert banner issues (#19773) 2024-04-29 21:56:41 +05:30
.env.nightly fix alert banner issues (#19773) 2024-04-29 21:56:41 +05:30
.env.release [Feature] Enable Test Networks by default on Dev, E2E and PR builds (#19365) 2024-03-26 20:55:22 +05:30
.envrc Add login integration test 2022-06-08 13:43:32 +01:00
.eslintrc.js upgrade react-native to 0.72.5 (#17241) 2023-12-11 21:22:23 +05:30
.flowconfig RN 63 and xcode12 2021-01-14 09:41:38 +01:00
.gitattributes Desktop branch merged into develop (#5266) 2018-07-23 18:21:31 +03:00
.gitignore fix: make run-ios-device script (#18845) 2024-02-20 10:54:09 +05:30
.mailmap fix my name 2019-02-28 14:50:42 +01:00
.nycrc move status-im under legacy (#18237) 2023-12-19 18:41:30 +01:00
.prettierignore feat: lint direct require quo component outside src/quo (#17828) 2023-11-07 10:21:58 +08:00
.prettierrc.js Update prettier config for the project. (#16303) 2023-06-19 19:09:12 +05:30
.watchmanconfig Ensure shell.nix uses same nixpkgs as the rest of the environment 2019-06-20 09:18:24 -04:00
.zprintrc Rewrite contract tests to use new promise-based API (#19208) 2024-03-13 09:38:32 -03:00
LICENSE.md Create LICENSE.md 2016-09-21 10:00:44 +08:00
Makefile apply patches with patch files (#19451) 2024-04-08 21:06:41 +05:30
README.md chore: fix few outdated things in docs & readme (#18920) 2024-02-22 00:17:09 +05:30
RELEASES.md rename quo2 (#17660) 2023-10-17 17:27:18 +02:00
VERSION Bump version to 2.27 2024-03-21 15:24:08 +00:00
app.json Lint and fix missing trailing newlines (#16445) 2023-07-04 19:40:13 +00:00
babel.config.js upgrade `react-native` to 0.73.5 (#18563) 2024-03-22 19:51:44 +05:30
binding.gyp Add status-go tests 2022-05-25 17:59:02 +01:00
default.nix nix: minor cleanup and documentation updates 2020-06-05 14:49:34 +02:00
index.js Update prettier config for the project. (#16303) 2023-06-19 19:09:12 +05:30
metro.config.js upgrade react-native to 0.72.5 (#17241) 2023-12-11 21:22:23 +05:30
package.json chore: add wallet connect library (#19758) 2024-05-08 05:51:45 -03:00
react-native.config.js upgrade react-native to 0.72.5 (#17241) 2023-12-11 21:22:23 +05:30
shadow-cljs.edn Upgrade clj-kondo to 2024.03.13 (#19930) 2024-05-09 12:04:31 -03:00
shell.nix nix: minor cleanup and documentation updates 2020-06-05 14:49:34 +02:00
status-go-version.json refactor_:remove part of node config for local pair sync (#19826) 2024-05-07 19:33:46 +08:00
supervisord.conf Add docker-compose for development build 2018-04-11 14:58:38 +01:00
yarn.lock chore: add wallet connect library (#19758) 2024-05-08 05:51:45 -03:00

README.md

Status - a Mobile Ethereum Operating System

Get it on Google Play Get it on F-Droid

Get it on Github

Join us in creating a browser, messenger, and gateway to a decentralized world. Status is a free (libre) open source mobile client targeting Android & iOS built entirely on Ethereum technologies. That's right, no middlemen and go-ethereum running directly on your device.

Getting started with Status

Why?

We believe in a medium of pure free trade, economies with fair, permission-less access and a world without intermediaries. We want to create policies that can exist between friends or scale globally, we want to communicate securely and be uninhibited by legacy systems.

We want to take responsibility for our data, and the way we conduct ourselves privately and promote this way of life to a mass audience.

We want deep insights into our own economies so we can make informed, data-driven decisions on how to make our lives better. The Ethereum blockchain, Smart Contracts, Swarm and Whisper provide us with a path forward.

If this interests you, help us make Status a reality - anyone can contribute and we need everyone at any skill level to participate.

How to Contribute?

Go straight to the docs and choose what interests you:

  • Developer Developers are the heart of software and to keep Status beating we need all the help we can get! If you're looking to code in ClojureScript or Golang then Status is the project for you! We use React Native and there is even some Java/Objective-C too! Want to learn more about it? Start by reading our Developer Introduction which guides you through the technology stack and start browsing beginner issues. Then you can read how to Build Status, which talks about managing project dependencies, coding guidelines and testing procedures. Check out our coding guidelines.

  • Community Management Metcalfe's law states that the value of a network is proportional to the square of the number of connected users of the system - without community Status is meaningless. We're looking to create a positive, fun environment to explore new ideas, experiment and grow the Status community. Building a community takes a lot of work but the people you'll meet and the long-lasting relationships you form will be well worth it, check out our Mission and Community Principles

  • Specification / Documentation John Dewey once said, "Education is not preparation for life; education is life itself ". Developers and Designers need guidance and it all starts from documentation and specifications. Our software is only as good as its documentation, check out our docs and see how you can improve what we have.

  • Blog Writing Content is King, keeping our blog up to date and informing the community of news helps keep everyone on the same page.

  • Testers It's bug-hunting season! Status is currently under active development and there is sure to be a bunch of learning, build status from scratch or if an android user checks out our nightly builds. You can shake your phone to submit bug reports, or start browsing our Github Issues. Every bug you find brings Status closer to stable, usable software for everyone to enjoy!

  • Security Status is a visual interface to make permanent changes on the Blockchain, it handles crypto-tokens that have real value and allows 3rd party code execution. Security is paramount to its success. You are given permission to break Status as hard as you can, as long as you share your findings with the community!

  • Evangelism Help us spread the word! Tell a friend right now, in fact, tell everyone - yell from a mountain if you have to, every person counts! If you've got a great story to tell or have some interesting way you've spread the word about Status let us know about it in our chat

Give me Binaries!

You can get our Beta builds for both Android and iOS on our website, through our nightly builds, or by building it yourself.

Core Contributors

Core Team Members

Special thanks to @adrian-tiberius. Without the dedication of these outstanding individuals, Status would not exist.

Contact us

Feel free to email us at support@status.im.

License

Licensed under the Mozilla Public License v2.0