Skip to content

Conversation

@alexjba
Copy link
Contributor

@alexjba alexjba commented Oct 9, 2025

What does the PR do

Enabling orc memory manager for nim and use malloc to allocate objects. The memory footprint for the app will decrease up to 300MB with no noticeable downsides in terms of performance.

The only downside I've seen so far is that nim objects will be deallocated for real! Meaning that we'll need to be more careful with the lifetime management when sharing objects with QML. The advantage on the other hand is that in such a case a crash is imminent when QML tries to access the QObject.

@status-im-auto
Copy link
Member

status-im-auto commented Oct 9, 2025

Jenkins Builds

Click to see older builds (16)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b6a8b28 #1 2025-10-09 16:08:38 ~9 min android/arm64 🤖apk 📲
✔️ b6a8b28 #1 2025-10-09 16:11:37 ~12 min ios/aarch64 📦pkg
✔️ b6a8b28 #1 2025-10-09 16:12:37 ~13 min tests/nim 📄log
✔️ b6a8b28 #1 2025-10-09 16:18:42 ~19 min linux/x86_64 📦tgz
✔️ b6a8b28 #1 2025-10-09 16:21:30 ~22 min macos/aarch64-nwaku 🍎dmg
✔️ b6a8b28 #1 2025-10-09 16:22:10 ~23 min tests/ui 📄log
✔️ b6a8b28 #1 2025-10-09 16:22:45 ~23 min linux/x86_64-nwaku 📦tgz
✔️ b6a8b28 #1 2025-10-09 16:25:12 ~26 min macos/aarch64 🍎dmg
✔️ b6a8b28 #1 2025-10-09 16:27:30 ~28 min windows/x86_64 💿exe
✔️ b6a8b28 pr18986 2025-10-09 16:37:09 ~18 min tests/e2e 📊rpt
b6a8b28 #2 2025-10-16 15:34:00 ~7 min macos/aarch64-nwaku 📄log
b6a8b28 #2 2025-10-16 15:34:00 ~7 min macos/aarch64 📄log
✔️ b6a8b28 #2 2025-10-16 15:34:17 ~7 min tests/nim 📄log
✔️ b6a8b28 #2 2025-10-16 15:37:59 ~11 min ios/aarch64 📦pkg
✔️ b6a8b28 #2 2025-10-16 15:41:23 ~14 min tests/ui 📄log
✔️ 059dcdb8 #2 2025-10-10 17:23:16 ~7 min android/arm64 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
5b6e67e #3 2025-10-16 15:46:34 ~3 min macos/aarch64 📄log
5b6e67e #3 2025-10-16 15:46:34 ~3 min macos/aarch64-nwaku 📄log
✔️ 5b6e67e #3 2025-10-16 15:49:59 ~6 min tests/nim 📄log
✔️ 5b6e67e #3 2025-10-16 15:50:20 ~7 min ios/aarch64 📦pkg
5b6e67e #3 2025-10-16 15:54:33 ~11 min linux/x86_64-nwaku 📄log
✔️ a9ddf8a #4 2025-10-16 16:01:57 ~6 min tests/nim 📄log
✔️ a9ddf8a #4 2025-10-16 16:04:01 ~8 min ios/aarch64 📦pkg
✔️ a9ddf8a #4 2025-10-16 16:09:28 ~13 min tests/ui 📄log
✔️ a9ddf8a #5 2025-10-16 16:11:15 ~15 min macos/aarch64 🍎dmg
✔️ a9ddf8a #4 2025-10-16 16:12:20 ~16 min linux/x86_64 📦tgz
✔️ a9ddf8a #4 2025-10-16 16:16:18 ~20 min linux/x86_64-nwaku 📦tgz
✔️ a9ddf8a #4 2025-10-16 16:17:39 ~22 min macos/aarch64-nwaku 🍎dmg
✔️ a9ddf8a #4 2025-10-16 16:21:46 ~26 min windows/x86_64 💿exe
✔️ a9ddf8a #8 2025-10-16 16:23:48 ~14 min android/arm64 🤖apk 📲
✔️ a9ddf8a pr18986 2025-10-16 16:31:12 ~18 min tests/e2e 📊rpt

@alexjba alexjba force-pushed the fix/wallet-crashes branch 4 times, most recently from 742b60c to f00edce Compare October 16, 2025 12:38
Base automatically changed from fix/wallet-crashes to master October 16, 2025 15:26
@alexjba alexjba force-pushed the chore/enable-orc-mobile branch from b6a8b28 to 5b6e67e Compare October 16, 2025 15:42
@alexjba alexjba force-pushed the chore/enable-orc-mobile branch from 5b6e67e to a9ddf8a Compare October 16, 2025 15:55
@alexjba alexjba marked this pull request as ready for review October 16, 2025 16:08
@alexjba alexjba requested a review from a team as a code owner October 16, 2025 16:08
@alexjba alexjba requested review from iurimatias and removed request for a team October 16, 2025 16:08
@alexjba
Copy link
Contributor Author

alexjba commented Oct 16, 2025

Some stats on Android. The memory usage for a new account with Status community loaded (not a member) will decrease from ±800 to ±500.

Another thing I've noticed is that if we leave it to Scudo to manage the Android memory it will more efficiently release memory when the app is not visible.

@alexjba alexjba requested review from Khushboo-dev-cpp, alaibe, caybro, noeliaSD and saledjenic and removed request for iurimatias October 16, 2025 16:17
@alexjba
Copy link
Contributor Author

alexjba commented Oct 16, 2025

@glitchminer is it possible to run the appium tests on this branch?

Copy link
Contributor

@dlipicar dlipicar left a comment

Choose a reason for hiding this comment

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

I'm a fan of consistent crashes!

@alexjba alexjba merged commit c0b8424 into master Oct 16, 2025
13 checks passed
@alexjba alexjba deleted the chore/enable-orc-mobile branch October 16, 2025 17:33
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.

4 participants