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

2x slower android builds after upgrading to 0.76 #48316

Open
ethanneff opened this issue Dec 17, 2024 · 1 comment
Open

2x slower android builds after upgrading to 0.76 #48316

ethanneff opened this issue Dec 17, 2024 · 1 comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@ethanneff
Copy link

Description

Our Android builds are significantly slower after upgrading from 0.75.4 to 0.76.5

Screenshot 17

A large amount of time is doing C work because of the new architecture. Is this expected?

  • 2024-12-17T09:09:48.5675575Z [09:09:48]: ▸ [35m> Task :app:buildCMakeRelWithDebInfo[arm64-v8a][0m 4 minutes
  • 2024-12-17T09:14:01.6679960Z [09:14:01]: ▸ [35m> Task :app:buildCMakeRelWithDebInfo[armeabi-v7a][0m 2 minutes
  • 2024-12-17T09:17:40.9667954Z [09:17:40]: ▸ �[35m> Task :app:configureCMakeRelWithDebInfo[x86]�[0m 30 seconds
  • 2024-12-17T09:18:10.8667528Z [09:18:10]: ▸ [35m> Task :app:buildCMakeRelWithDebInfo[x86][0m 2 minutesa

Steps to reproduce

  1. run ./gradlew assembleRelease assembleDebug on a react native without framework
  2. compare 0.75.4 speeds to 0.76.5 speeds

React Native Version

0.76.5

Affected Platforms

Runtime - Android

Areas

JSI - Javascript Interface, Codegen

Output of npx react-native info

❯ npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 15.1.1
  CPU: (12) arm64 Apple M3 Pro
  Memory: 279.53 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.0
    path: ~/.nvm/versions/node/v20.12.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.12.0/bin/yarn
  npm:
    version: 10.8.2
    path: ~/Documents/adaptedmind/AdaptedMindMobile/node_modules/.bin/npm
  Watchman:
    version: 2024.09.23.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK:
    API Levels:
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 35.0.0
    System Images:
      - android-30 | Google Play ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12700392
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /usr/bin/javac
  Ruby:
    version: 3.3.1
    path: /Users/eneff/.rvm/rubies/ruby-3.3.1/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true


### Stacktrace or Logs

```text
before

https://gist.github.com/ethanneff/581ae74c327fe18f65c792d622a08640

after

https://gist.github.com/ethanneff/2eb0b8e8196f209834e147b5f0c95ed3

Reproducer

https://github.com/facebook/react-native

Screenshots and Videos

attached

@ethanneff ethanneff added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Dec 17, 2024
@react-native-bot react-native-bot added Platform: Android Android applications. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Dec 17, 2024
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

2 participants