NativeScript / NativeScript/ios

IOS 7.1.0 startup time slower than 6.5.4

Offen
#97 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
150
Forks
43
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
22

Beschreibung

With the release of 7.1.0, we've finally been able to test our mobile app on ios-v8. We've found that the startup is significantly slower, to the point that if we start our app via push, apple may kill it due to it taking too long.

My coworker has made a test repo showing this difference, along with much higher CPU usage: https://github.com/IanNMarshall/ns-performance-test

Without any flags (uglify, release, etc.) here is the startup time difference using Time Profiler:

image

And using release flags:

image

The times are close, but in our app (and likely anything larger than a demo), the difference grows:

image

I hope we are just missing something, as I was really hoping to see a significant boost across the board moving to v8. Our tests included codecache, and I'm aware the first startup is meant to be slower in that case, the slowness persists to subsequent app loads as well.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem verknüpften ns-performance-test-Repository und vergleiche das Startup-Profiling für iOS 7.1.0 mit 6.5.4, einschließlich Release-Flags und Codecache-Szenarien. Die Aufgabe ist abgeschlossen, wenn die Startup- und CPU-Regression identifiziert und behoben oder klar erklärt wurde und anschließend auch weitere App-Ladevorgänge überprüft wurden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
ios, javascript
Bereich
mobile-dev, performance
Issue-Typ
Bug
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.