• DMCA
  • Disclaimer
  • Terms and Conditions
  • Cookie Privacy Policy
  • Privacy Policy
  • Contact
  • Advertise
Real Hacker
  • Home
  • Review
    Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

    Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

    OSOM’s OV1 is now Solana’s web3 Android handset, Saga – TechCrunch

    OSOM’s OV1 is now Solana’s web3 Android handset, Saga – TechCrunch

    NFT summer in New York is in full swing amid crypto winter – TechCrunch

    NFT summer in New York is in full swing amid crypto winter – TechCrunch

    Want an EV? You may have to wait – TechCrunch

    Want an EV? You may have to wait – TechCrunch

    Netflix lays off 300 more people — almost 3% of its staff – TechCrunch

    Netflix lays off 300 more people — almost 3% of its staff – TechCrunch

    How hiring the wrong medical “expert” derailed US pandemic response

    How hiring the wrong medical “expert” derailed US pandemic response

  • Gaming
    Video Games Double Down On NFTs Despite Historic Crashes

    Video Games Double Down On NFTs Despite Historic Crashes

    Microsoft Flight Simulator update could lead to a virtual Space Shuttle

    Microsoft Flight Simulator update could lead to a virtual Space Shuttle

    Into The Breach Advanced Edition Introduces New Mechs And A Mobile Port Through Netflix

    Into The Breach Advanced Edition Introduces New Mechs And A Mobile Port Through Netflix

    The Best Dog Games On Nintendo Switch

    The Best Dog Games On Nintendo Switch

    Deliver Us the Moon Launches Today on Xbox Series X|S

    Deliver Us the Moon Launches Today on Xbox Series X|S

    Destiny 2 DMCA Revenge Plot Now A .6 Million Bungie Lawsuit

    Destiny 2 DMCA Revenge Plot Now A $7.6 Million Bungie Lawsuit

  • Gear
    • All
    • Audio
    • Camera
    • Laptop
    • Smartphone
    Fans can now join the waitlist for the Nothing phone (1)

    Fans can now join the waitlist for the Nothing phone (1)

    DaVinci Resolve 18 Beta 5 Update

    DaVinci Resolve 18 Beta 5 Update

    Make UK Drill In The Style Of Dutchavelli Or M24

    Make UK Drill In The Style Of Dutchavelli Or M24

    Samsung announces 200MP smartphone image sensor with extremely small pixels

    Samsung announces 200MP smartphone image sensor with extremely small pixels

    Instagram is testing a new AI-based age verification, social vouching

    Instagram is testing a new AI-based age verification, social vouching

    How to Watch Love Island UK in the US and beyond: a global streaming guide

    How to Watch Love Island UK in the US and beyond: a global streaming guide

    Trending Tags

    • Best iPhone 7 deals
    • Apple Watch 2
    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • iOS 10
    • iPhone 7
    • Sillicon Valley
  • Computers
    Banished To Work In The Metaverse For A Week

    Banished To Work In The Metaverse For A Week

    The Gigabyte UD1000GM PG5 1000W PSU Review: Prelude to ATX 3.0

    The Gigabyte UD1000GM PG5 1000W PSU Review: Prelude to ATX 3.0

    AMD Updates Ryzen Embedded Series, R2000 Series With up to Four Cores and Eight Threads

    AMD Updates Ryzen Embedded Series, R2000 Series With up to Four Cores and Eight Threads

    A Pair Of DDR4 Z690 Boards, The NZXT N5 And NZXT N7

    A Pair Of DDR4 Z690 Boards, The NZXT N5 And NZXT N7

    SpellForce: Conquest Of Eo, 4X With RPG Elements

    SpellForce: Conquest Of Eo, 4X With RPG Elements

    Adobe Acrobat Blocking 30 Security Apps From Scanning PDFs

    Adobe Acrobat Blocking 30 Security Apps From Scanning PDFs

  • Applications
    Popular Apple Music service tier gets sudden price hike in the US, UK, and Canada

    Popular Apple Music service tier gets sudden price hike in the US, UK, and Canada

    Hackers Exploit Mitel VoIP Zero-Day in Likely Ransomware Attack

    Hackers Exploit Mitel VoIP Zero-Day in Likely Ransomware Attack

    The Morning Show director Mimi Leder signs Apple TV+ overall deal

    The Morning Show director Mimi Leder signs Apple TV+ overall deal

    YouTube TV 5.1 audio support rolling out to Amazon’s Fire TV devices

    YouTube TV 5.1 audio support rolling out to Amazon’s Fire TV devices

    Enter a Unique World With Pixar and Disney Characters in the New RPG Disney Mirrorverse

    Enter a Unique World With Pixar and Disney Characters in the New RPG Disney Mirrorverse

    Android Developers Blog: Developer-Powered CTS (CTS-D)

    Android Developers Blog: Developer-Powered CTS (CTS-D)

  • Security
    Mitek launches MiVIP platform to fight identity theft

    Mitek launches MiVIP platform to fight identity theft

    #InfosecurityEurope2022: The Interactivity Between Nation-State Attackers and Organized Crime Gangs

    #InfosecurityEurope2022: The Interactivity Between Nation-State Attackers and Organized Crime Gangs

    Johnson Controls Acquires Tempered Networks to Bring Zero Trust Cybersecurity to Connected Buildings

    Johnson Controls Acquires Tempered Networks to Bring Zero Trust Cybersecurity to Connected Buildings

    #InfosecurityEurope2022: Actions Not Words – Hacking the Human Through Social Engineering

    #InfosecurityEurope2022: Actions Not Words – Hacking the Human Through Social Engineering

    Focus On ‘Attackability’ To Better Prioritize Vulnerabilities

    Focus On ‘Attackability’ To Better Prioritize Vulnerabilities

    Pair of Brand-New Cybersecurity Bills Become Law

    Pair of Brand-New Cybersecurity Bills Become Law

No Result
View All Result
  • Home
  • Review
    Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

    Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

    OSOM’s OV1 is now Solana’s web3 Android handset, Saga – TechCrunch

    OSOM’s OV1 is now Solana’s web3 Android handset, Saga – TechCrunch

    NFT summer in New York is in full swing amid crypto winter – TechCrunch

    NFT summer in New York is in full swing amid crypto winter – TechCrunch

    Want an EV? You may have to wait – TechCrunch

    Want an EV? You may have to wait – TechCrunch

    Netflix lays off 300 more people — almost 3% of its staff – TechCrunch

    Netflix lays off 300 more people — almost 3% of its staff – TechCrunch

    How hiring the wrong medical “expert” derailed US pandemic response

    How hiring the wrong medical “expert” derailed US pandemic response

  • Gaming
    Video Games Double Down On NFTs Despite Historic Crashes

    Video Games Double Down On NFTs Despite Historic Crashes

    Microsoft Flight Simulator update could lead to a virtual Space Shuttle

    Microsoft Flight Simulator update could lead to a virtual Space Shuttle

    Into The Breach Advanced Edition Introduces New Mechs And A Mobile Port Through Netflix

    Into The Breach Advanced Edition Introduces New Mechs And A Mobile Port Through Netflix

    The Best Dog Games On Nintendo Switch

    The Best Dog Games On Nintendo Switch

    Deliver Us the Moon Launches Today on Xbox Series X|S

    Deliver Us the Moon Launches Today on Xbox Series X|S

    Destiny 2 DMCA Revenge Plot Now A .6 Million Bungie Lawsuit

    Destiny 2 DMCA Revenge Plot Now A $7.6 Million Bungie Lawsuit

  • Gear
    • All
    • Audio
    • Camera
    • Laptop
    • Smartphone
    Fans can now join the waitlist for the Nothing phone (1)

    Fans can now join the waitlist for the Nothing phone (1)

    DaVinci Resolve 18 Beta 5 Update

    DaVinci Resolve 18 Beta 5 Update

    Make UK Drill In The Style Of Dutchavelli Or M24

    Make UK Drill In The Style Of Dutchavelli Or M24

    Samsung announces 200MP smartphone image sensor with extremely small pixels

    Samsung announces 200MP smartphone image sensor with extremely small pixels

    Instagram is testing a new AI-based age verification, social vouching

    Instagram is testing a new AI-based age verification, social vouching

    How to Watch Love Island UK in the US and beyond: a global streaming guide

    How to Watch Love Island UK in the US and beyond: a global streaming guide

    Trending Tags

    • Best iPhone 7 deals
    • Apple Watch 2
    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • iOS 10
    • iPhone 7
    • Sillicon Valley
  • Computers
    Banished To Work In The Metaverse For A Week

    Banished To Work In The Metaverse For A Week

    The Gigabyte UD1000GM PG5 1000W PSU Review: Prelude to ATX 3.0

    The Gigabyte UD1000GM PG5 1000W PSU Review: Prelude to ATX 3.0

    AMD Updates Ryzen Embedded Series, R2000 Series With up to Four Cores and Eight Threads

    AMD Updates Ryzen Embedded Series, R2000 Series With up to Four Cores and Eight Threads

    A Pair Of DDR4 Z690 Boards, The NZXT N5 And NZXT N7

    A Pair Of DDR4 Z690 Boards, The NZXT N5 And NZXT N7

    SpellForce: Conquest Of Eo, 4X With RPG Elements

    SpellForce: Conquest Of Eo, 4X With RPG Elements

    Adobe Acrobat Blocking 30 Security Apps From Scanning PDFs

    Adobe Acrobat Blocking 30 Security Apps From Scanning PDFs

  • Applications
    Popular Apple Music service tier gets sudden price hike in the US, UK, and Canada

    Popular Apple Music service tier gets sudden price hike in the US, UK, and Canada

    Hackers Exploit Mitel VoIP Zero-Day in Likely Ransomware Attack

    Hackers Exploit Mitel VoIP Zero-Day in Likely Ransomware Attack

    The Morning Show director Mimi Leder signs Apple TV+ overall deal

    The Morning Show director Mimi Leder signs Apple TV+ overall deal

    YouTube TV 5.1 audio support rolling out to Amazon’s Fire TV devices

    YouTube TV 5.1 audio support rolling out to Amazon’s Fire TV devices

    Enter a Unique World With Pixar and Disney Characters in the New RPG Disney Mirrorverse

    Enter a Unique World With Pixar and Disney Characters in the New RPG Disney Mirrorverse

    Android Developers Blog: Developer-Powered CTS (CTS-D)

    Android Developers Blog: Developer-Powered CTS (CTS-D)

  • Security
    Mitek launches MiVIP platform to fight identity theft

    Mitek launches MiVIP platform to fight identity theft

    #InfosecurityEurope2022: The Interactivity Between Nation-State Attackers and Organized Crime Gangs

    #InfosecurityEurope2022: The Interactivity Between Nation-State Attackers and Organized Crime Gangs

    Johnson Controls Acquires Tempered Networks to Bring Zero Trust Cybersecurity to Connected Buildings

    Johnson Controls Acquires Tempered Networks to Bring Zero Trust Cybersecurity to Connected Buildings

    #InfosecurityEurope2022: Actions Not Words – Hacking the Human Through Social Engineering

    #InfosecurityEurope2022: Actions Not Words – Hacking the Human Through Social Engineering

    Focus On ‘Attackability’ To Better Prioritize Vulnerabilities

    Focus On ‘Attackability’ To Better Prioritize Vulnerabilities

    Pair of Brand-New Cybersecurity Bills Become Law

    Pair of Brand-New Cybersecurity Bills Become Law

No Result
View All Result
Real Hacker
No Result
View All Result

Home Applications

Improving App Performance with Baseline Profiles

RealHacker Staff by RealHacker Staff
February 26, 2022
Share on FacebookShare on Twitter


Or learn how to enhance startup time by as much as 40%

Posted by Kateryna Semenova, DevRel Engineer; Rahul Ravikumar, Software program Engineer; Chris Craik, Software program Engineer

ALT TEXT GOES HERE

Why is startup time essential?

A number of apps discover correlation between app efficiency and person engagement. Individuals count on apps to be responsive and quick to load. Startup time is without doubt one of the main metrics for app efficiency and high quality.

A few of our companions have already invested loads of time and sources for app startup optimizations. For instance, take a look at the Fb story.

On this weblog submit we’ll focus on Baseline Profiles and the way they enhance app and library efficiency, together with startup time by as much as 40%. Whereas this blogpost focuses on startup, baseline profiles additionally considerably enhance jank as nicely.

Historical past

Android 9 (API stage 28) launched ART optimizing profiles in Play Cloud to enhance app startup time. On common, we’ve seen that apps’ chilly begins are a minimum of 15% sooner throughout quite a lot of units when Cloud Profiles can be found.

How do Profiles work?

When the app is first launched after set up or replace, its code runs in an interpreted mode till it’s JITted. In an APK, Java and Kotlin code is compiled as dex bytecode, however not absolutely compiled to machine code (since Android 6), on account of the price of storing and loading absolutely compiled apps. Courses and strategies which can be incessantly used within the app, in addition to these used for app startup, are recorded right into a profile file. As soon as the gadget enters idle mode, ART compiles the apps based mostly on these profiles. This accelerates subsequent app launches.

Beginning with Android 9 (API stage 28), Google Play additionally gives Cloud Profiles. When an app runs on a tool, the profiles generated by ART are uploaded by the Play Retailer app and aggregated within the cloud. As soon as there are sufficient profiles uploaded for an utility, the Play app makes use of the aggregated profile for subsequent installs.

Drawback

Whereas Cloud Profiles are nice when they’re out there, they don’t seem to be all the time prepared for use when an app is put in. Accumulating and aggregating the profiles often takes a number of days, which is an issue when many apps replace on a weekly foundation. Many customers will set up an replace earlier than the Cloud Profile is offered. The Google Android staff began in search of different methods to enhance the latency of profiles.

Answer

Baseline Profiles are a brand new mechanism to offer profiles which can be utilized on Android 7 (API stage 24) and better. A baseline profile is an ART profile generated by the Android Gradle plugin utilizing a human readable profile format that may be supplied by apps and libraries. An instance would possibly appear like this:

HSPLandroidx/compose/runtime/ComposerImpl;->updateValue(Ljava/lang/Object;)V
HSPLandroidx/compose/runtime/ComposerImpl;->updatedNodeCount(I)I
HLandroidx/compose/runtime/ComposerImpl;->validateNodeExpected()V
PLandroidx/compose/runtime/CompositionImpl;->applyChanges()V
HLandroidx/compose/runtime/ComposerKt;->findLocation(Ljava/util/Record;I)I

Instance for Compose library.

The binary profile is saved in a selected location within the APK property listing
(property/dexopt/baseline.prof).

Baseline Profiles are created throughout construct time, shipped as a part of the APK to Play, after which despatched from Play to customers when an app is downloaded. They fill the hole within the ART Cloud Profile pipeline, when Cloud Profiles will not be but out there, and mechanically merge with Cloud Profiles when they’re.

This diagram displays the baseline profile workflow from creation through end-user delivery.

This diagram shows the baseline profile workflow from creation via end-user supply.

One of many largest advantages of Baseline Profiles is that they are often developed and evaluated regionally so builders can see real looking end-user efficiency enhancements. They’re additionally supported on a decrease model of Android(7 and better) than Cloud Profiles, that are solely out there beginning in Android 9.

Affect

App devs

In early 2021, Google Maps switched from a two-week to a one-week launch cycle. Extra frequent updates meant extra incessantly discarding native pre-compilation, and extra customers experiencing gradual launches with out Play Cloud Profiles. Through the use of Baseline Profiles, Google Maps improved their common startup time by 30% and noticed a corresponding improve in searches by 2.4%, an immense acquire for such a longtime app.

Library devs

Code in a library is rather like that of an app – it is not absolutely compiled by default, which generally is a downside if it does vital work on the essential path of startup.

Jetpack Compose is a UI library that isn’t part of the Android system picture and thus not absolutely compiled when put in, not like a lot of the Android View toolkit code. This was inflicting efficiency issues, particularly for the primary few chilly launches of the app.

To resolve this downside, Compose makes use of profile installer. It ships baseline profile guidelines which scale back startup time and jank in Compose apps.

Google PlayStore’s search outcomes web page has been re-written with Compose. After incorporating the Baseline Profile guidelines from Compose, time to render the preliminary search outcomes web page with photos improved by ~40%.

The Android staff has additionally added Baseline Profiles to related AndroidX libraries. This advantages all Android apps utilizing these libraries. Constraint Format has discovered transport profile guidelines reduces animation body occasions by multiple millisecond.

How one can use Baseline Profiles


Create a customized Baseline Profile

All apps and library builders can profit from together with Baseline Profiles. Ideally, builders create profiles for his or her most important person journeys to make sure that these journeys have constantly quick efficiency no matter whether or not cloud profiles can be found. Take a look at the detailed information on learn how to arrange Baseline Profiles for each app and library builders.


Replace dependencies

In case you are not able to generate Baseline Profiles on your app proper now, you may nonetheless profit from them by updating your dependencies. For those who construct with Android Gradle Plugin 7.1.0-alpha05 or newer, you may get Baseline Profiles included in your APK which can be already supplied by libraries (comparable to Jetpack). Google Play compiles your app with these profiles at set up time. You may complement these profiles as a part of constructing your utility.


Measure Enhancements

Don’t neglect to measure enhancements. Comply with the steps on learn how to measure startup with the generated profile regionally.

Present suggestions

Please share your suggestions and tell us your expertise!



Source link

Related

Tags: appBaselineImprovingperformanceProfiles
RealHacker Staff

RealHacker Staff

Recommended.

TOKiMONSTA: “Blink and it can all be gone. But to have another day to create music is a beautiful day”

TOKiMONSTA: “Blink and it can all be gone. But to have another day to create music is a beautiful day”

March 31, 2022
The best Nintendo Switch deals of June 2022

The best Nintendo Switch deals of June 2022

June 10, 2022

Trending.

Hypex Presents New Nilai500 DIY Audio Amplifier Module

Hypex Presents New Nilai500 DIY Audio Amplifier Module

May 16, 2022
NAMM 2022: Audeze partners Manny Marroquin on the Manny MM-500 headphones

NAMM 2022: Audeze partners Manny Marroquin on the Manny MM-500 headphones

June 3, 2022
ADPTR Audio Sculpt review: A must-have dynamics plug-in for mastering and mixing engineers

ADPTR Audio Sculpt review: A must-have dynamics plug-in for mastering and mixing engineers

March 15, 2022
12 best rotary mixers for DJs

12 best rotary mixers for DJs

March 16, 2022
How To Get Into Halo Infinite’s Campaign Co-Op Beta Test

How To Get Into Halo Infinite’s Campaign Co-Op Beta Test

June 8, 2022

Follow Us

Categories

  • Applications
  • Audio
  • Camera
  • Computers
  • Gaming
  • Gear
  • Laptop
  • Metaverse
  • Microsoft
  • Photography
  • Review
  • Security
  • Smartphone
  • Uncategorized

Recent News

Mitek launches MiVIP platform to fight identity theft

Mitek launches MiVIP platform to fight identity theft

June 24, 2022
Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

Spurred by Roe overturn, senators seek FTC probe of iOS and Android tracking

June 24, 2022
  • DMCA
  • Disclaimer
  • Terms and Conditions
  • Cookie Privacy Policy
  • Privacy Policy
  • Contact
  • Advertise

© 2019 - theme develop by real hacker news.

No Result
View All Result
  • Home
  • Review
  • Applications
  • Computers
  • Gaming
  • Gear
    • Audio
    • Camera
    • Smartphone
  • Microsoft
  • Photography
  • Security

© 2019 - theme develop by real hacker news.

error: Content is protected !!