Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use release mode in sample code for compiling demos#14

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

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

Conversation

@nicoburns

@nicoburns nicoburns commented Jan 5, 2026
edited
Loading

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.

nicoburns reacted with thumbs up emoji
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

@DJMcNab DJMcNab May 6, 2026

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

Reviewers

1 more reviewer

@DJMcNab DJMcNab DJMcNab approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

App very laggy

AltStyle によって変換されたページ (->オリジナル) /