Skip to content

Use release mode in sample code for compiling demos#14

Open
nicoburns wants to merge 1 commit into
rust-mobile:mainfrom
nicoburns:release-mode
Open

Use release mode in sample code for compiling demos#14
nicoburns wants to merge 1 commit into
rust-mobile:mainfrom
nicoburns:release-mode

Conversation

@nicoburns

@nicoburns nicoburns commented Jan 5, 2026

Copy link
Copy Markdown

The demos are indeed very laggy when the Rust code is compiled in debug mode. And I think compiling in release mode is a more sensible default recommendation.

Signed-off-by: Nico Burns <nico@nicoburns.com>

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like a good idea. I'd much prefer that the format were --release, but I don't care enough to block this PR on that.

Comment thread README.md

```bash
cargo ndk -t arm64-v8a -o app/src/main/jniLibs/ build -p android-view-demo
cargo ndk -t arm64-v8a -o app/src/main/jniLibs/ build -rp android-view-demo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't even know that -r was supported by rustc. I'd generally always lean towards spelling this as --release

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.

App very laggy

2 participants