René's URL Explorer Experiment


Title: perf: faster object lifecycle and JNI calls by edusperoni · Pull Request #2099 · NativeScript/android · GitHub

Open Graph Title: perf: faster object lifecycle and JNI calls by edusperoni · Pull Request #2099 · NativeScript/android

X Title: perf: faster object lifecycle and JNI calls by edusperoni · Pull Request #2099 · NativeScript/android

Description: Description Follow-up to #2092/#2093/#2096/#2097. This PR has three parts: Object lifecycle redesign: a lock-free id table, batched finalizer handling, and class lookups by index. Single-thread fixes: a round of profile-driven cuts to the Java ↔ JS call paths. First access of large classes and packages: android.R.*, android.view, TextView and similar no longer pay quadratic or per-member costs when first touched. The Numbers section starts with a main → this PR comparison over the whole benchmark harness. Multithreaded JS is the model optimized for: the test app runs with it on. Object lifecycle Commit Change keep Java object ids in one table com.tns.Runtime kept four id maps (strong/weak × both directions), synchronized when multithreaded JS is on. One ObjectTable replaces them: open addressing over the id and over System.identityHashCode, with no per-entry allocation. NativeScriptHashMap/WeakHashMap/AbstractMap are removed. resolve known objects before the isolate lock Any thread can do an optimistic StampedLock read (API 24+). Java passes the ids it reads as hints, and native re-checks them under the isolate lock. settle collected wrappers in batches / at the next crossing Finalizers only queue ids. One processFinalizedBatch call per batch replaces one JNI call per wrapper. The batch flushes at the next JS↔Java crossing, with a delayed event-loop task as the idle fallback. A wrapper handed back to JS while queued is skipped. class by index instead of by name Java gives each class a dense index and sends it with each object. Native caches the JNI name and a global class ref by index, so wrapping a new object no longer calls Class.getName() and FindClass. This makes the class-name cache in #2075 unnecessary. register new argument objects before the isolate lock ObjectTable.findOrRegister does the find and insert under one write lock. A call that fails before converting its arguments releases the objects it registered. API < 24 keeps registration under the isolate lock. settle a batch under one write lock, and after each call keep the next Java caller awake With two Java threads calling in, every isolate handoff put the waiter to sleep, and waking it (~100–150 µs on the test phone) took longer than the call itself. Java→JS calls now pass a per-runtime gate before v8::Locker that spins for up to 50 µs before sleeping. Nested calls skip it. Runtime.setAdmissionSpinMicros (public, static) tunes the budget; a negative value disables the gate. index ObjectTable's entries directly by id The id side of ObjectTable was a hash on the id that doubled and rehashed as it grew (12% of the page faults in a new-object profile). It is now a radix tree indexed by id: 64-id leaves in 64-leaf chunks, holding each entry's value and identity hash. Lookups are three array loads, and a leaf or chunk that empties is dropped unless it is the newest, so memory follows the live objects. The identity index is unchanged. Single-thread call paths Commit Change skip the unconverted-argument cleanup for calls without arguments Bug: no-argument callbacks always ran the failed-call cleanup path, which cost about a third of the native time of callback.noArgs(). read a callback's argument types and values in one JNI call Type ids ride at the end of the long[], so native makes one region read instead of three JNI calls. register a constructed object and read heap usage in one upcall new X() made two upcalls after the constructor; now it makes one. replace a package child's getter with its value on first read java.lang.Object ran a C++ getter for every package segment on every access. Children are now lazy data properties. look up resolved signatures without allocating Constructors and overloaded methods built and copied std::strings on every call. internalize cached property names / create wrappers without a constructor call Wrappers come from the instance template, with no JS→C++ call into an empty constructor and no fresh "constructor" string. one TLS lookup per thread state minSdk < 29 means emulated TLS, so JEnv and Runtime state are each read as one struct. keep each callback method name's V8 string Every Java→JS call copied the method name out of its String (two JNI calls) and internalized it again: ~11% of a noArgs callback. Java now gives each name a process-wide id (MethodNameIds: lock-free, keyed on String's cached hash, reference check before equals), and each runtime keeps the V8 string per id. No binding-generator change. let a binding carry its JS object id, and look runtimes up by index A callback probed ObjectTable for its receiver's JS object id and boxed the runtime tag into a ConcurrentHashMap lookup on every call. Both generators now give bindings an objectId__ns field next to #2015's runtimeTag__ns; initInstance writes it before the tag, and callJSMethod passes it to native as the id hint (native still checks it; ids are never reused). NativeScriptRuntimeBound gains getObjectId__ns/setObjectId__ns as default methods, so a binding compiled without the field falls back to the lookup. Runtimes are indexed by id in an array, and the two AppConfig flags the call path reads are cached in final fields. keep each identity-index entry's hash Registering a new object first misses in ObjectTable's identity index, and each probe candidate cost an id-table lookup plus a WeakReference dereference. The index now keeps each entry's identity hash, so a probe only looks an id up when the hashes match. cache a wrapper class's MetadataNode, allocate a link's handle with its state A new wrapper looked its class's MetadataNode up by name (a mutex and a string hash) and made three allocations to link. The per-class-index cache now keeps the node, and the v8::Persistent is a member of the weak-callback state. resolve a callback's receiver wrapper with one map lookup GetLinkedJsObjectByJavaObject found the id's entry, then GetJsObjectByJavaObject looked it up again. Neutral in measurement; a cleanup. keep a linked object's state in one allocation, indexed by id Link allocated a JSInstanceInfo, a weak-callback state that duplicated its id, a V8 External for the JSInstanceInfo, and an std::unordered_map node. JSInstanceInfo is now part of the state, the wrapper's JsInfo internal field holds id + 1 (a Smi) instead of an External, and the id map is a radix tree like the Java one. A stale alias now resolves to no state instead of freed memory. The + 1 keeps the zero V8 stores in an array buffer's embedder fields from reading as a link. build Java object wrappers from the class's instance template A wrapper was an empty object from one shared template that then got an own constructor, a new prototype and a private property holding a fresh External. Each step was a map transition off the same shared map, and the per-class constructor values kept generalizing its field, so most of a wrapper's creation was V8 migrating and searching maps (MigrateToMap, GeneralizeField, SetPrototype in the profile). Wrappers now come from the class's instance template, already on the class's own map with the right prototype. The MetadataNode goes in a new internal field, one shared External per class per runtime; new X() uses it too. See Notes for review for the visible change. address review findings A Java→JS call that threw could lose its exception: the finalizer flush after the call made JNI calls with the exception pending (CheckJNI aborts) and then cleared it, so the Java caller got null. The flush now defers to its scheduled task while an exception is pending. Also: super read through a non-Java object no longer dereferences a null MetadataNode; the two isolate-locked get-or-create upcalls register through findOrRegister, so they cannot race a thread registering call arguments; object ids are unsigned 32-bit in both id indexes; package children are read-only again, as on main; signature encoding runs no JS. let only the instance JS is constructing take its object id While JS constructs a Java object, Runtime.currentObjectId holds the id reserved for it, and the binding's initInstance takes it. Any binding instance Java created inside that constructor (by reflection, or a NativeScript custom view inflated by it) took the same id too, and since bindings now cache their id, its callbacks ran on the outer object's JS. The class under construction is now published with the id and only an instance of exactly that class takes it, once. The scope also restores the enclosing construction instead of -1 when a callback made by a constructor constructs another object. The class field is written only when it changes, so repeated constructions cost the same two field writes as before (measured flat). This predates the PR, but the id cache made it a silent misroute instead of an error. pass a binding argument's own object id to a callback packageArgs probed the identity index for every object argument. A binding of the receiving runtime carries its id (the same field the receiver hint uses), so it is passed as the hint; native still resolves it under the isolate lock and falls back to the exact lookup. callback.oneObject(binding) (the callback object passed to itself, like an adapter passing its JS ViewHolder): 1,704 → 1,682 ns. build wrappers of Java-created extended instances from their template Instances of an extended class that Java creates (Activities, inflated custom views, reflection) got their JS object from the shared wrapper template plus SetPrototype and an own constructor, the path the instance-template commit left alone. They now come from the extended class's own instance template. JavaCreated.newInstance(extendedClass): 9,783 → 7,621 ns (-22%). A follow-up commit keeps such an instance on the class's current prototype: V8 copies template instances from a cached first instantiation, so after code reassigns an extended class's prototype, new instances kept the old one (spec fails without the check). It only sets the prototype when it differs, which a profile shows never happens otherwise. bind calls between the runtime's own functions directly The regular runtime exports everything in the V8 monolith, so 45,008 of its 45,279 PLT slots pointed back into the library. -Bsymbolic-functions binds them at link time; exported functions stay callable from plugins and data symbols stay interposable. The optimized runtimes, which apps get unless a plugin asks for V8 symbols, already had 271 slots and are unchanged. First access of large classes Commit Change install a large class's static fields without a getter and setter function each Every static field got two JS functions on first touch, which is ~1,800 of them for android.R.attr. Classes with more than 64 static fields now go to dictionary mode first: adding native accessors one by one to a fast-mode object copies its descriptors each time. Final fields become lazy read-only data properties, so after the first read they are plain property loads (R.id.content: 74 → 9 ns). Small classes keep the getter/setter functions, which call faster on a fast-mode object. build a large package's object in dictionary mode A package object gets one lazy property per child, so android.view and android.widget were quadratic for the same reason. create member names internalized, straight from the metadata V8 internalizes every property name, so names built with kNormal from a std::string copy were copied twice more. Static field names come from a view into the metadata's name table. find a method's base-class counterpart by hash, not by a scan Each method compared its name against every method of its base class: hundreds of thousands of string comparisons for TextView over View. create Java methods and accessors as non-constructors For each constructible API function it instantiates, V8 also builds a prototype object, its constructor property and an instance map, which a method never uses. Instance methods, field/property accessors and helper functions now use ConstructorBehavior::kThrow. Class constructors and static methods stay constructible (see Notes for review). Numbers Medians on a Samsung SM-G780G (Snapdragon 865, not rooted). Release APK built as the optimized runtime (the one apps ship), speed-compiled, 7 rounds per row. The phone flips between two clock states about 1.6× apart, so only launches in the fast state are compared (field.get int ≤ 180 ns on main): 3 launches of main and 8 of this PR. "main" is this PR's merge base, e15d21a8, running this PR's benchmark harness. Times are ns unless marked µs; first-access rows are one sample per launch. main → this PR benchmark main this PR Δ first access android.R (µs) 284 314 +10% first access android.R.attr (µs) 7,431 1,026 -86% first access android.R.id (µs) 606 253 -58% first access android.R.style (µs) 6,037 608 -90% first access android.R.drawable (µs) 965 264 -73% first access android.R.string (µs) 342 176 -49% first read android.R.id.content (µs) 123 66 -47% first read android.R.id.text1 (µs) 94 45 -52% first read android.R.attr.textColor (µs) 108 60 -44% first read android.R.style.Theme (µs) 151 86 -43% first access android.view [package] (µs) 825 116 -86% first access android.view.View (µs) 3,836 1,360 -65% first access android.widget [package] (µs) 951 118 -88% first access android.widget.TextView (µs) 1,439 704 -51% first access android.content.Context (µs) 377 314 -17% first access android.app.Activity (µs) 1,001 620 -38% first calls of 20 android.view.View methods (µs) 234 192 -18% static.noop() 107 106 -2% static.add(int,int) 176 168 -4% static.addDouble(double,double) 224 215 -4% static.addLong(long,long) 188 178 -5% instance.noop() 246 225 -9% instance.getAlpha() [android.view.View] 251 244 -3% package member read android.view.View 464 16 -97% instance.getInt() 249 224 -10% instance.getBool() 251 242 -4% instance.getChar() 262 239 -9% instance.echo(String) 692 658 -5% instance.echo(String 1KB) 4,487 4,173 -7% instance.getString() 436 423 -3% instance.self() [wrapped return] 460 416 -9% instance.getOther() [wrapped return] 464 417 -10% instance.takeObject(Object) 536 499 -7% instance.takeObjects(Object x3) 1,092 1,016 -7% static.bufferCapacity(ArrayBuffer) 433 398 -8% static.sumInts(int[8] from JS array) 751 756 +1% static.newObjectOfManyClasses() [16 classes] 7,285 1,783 -76% static.newObjectInJava() [new wrapper] 7,309 1,286 -82% new java.lang.Object() 5,495 2,340 -57% new Object.extend({})() 5,440 3,976 -27% static field get int [small class] 73 72 -2% static field get final int [small class] 73 77 +5% static field set int [small class] 75 74 -1% static field get final int [android.R.id] 79 8.0 -90% field.get int 172 161 -6% field.set int 169 162 -4% field.get Object 357 325 -9% field.get String 370 352 -5% lifecycle new java.lang.Object() [alloc, kept alive] 5,282 2,317 -56% lifecycle new java.lang.Object() [release: V8 gc] 2,194 330 -85% lifecycle new java.lang.Object() [release: Java gc] 1,001 740 -26% lifecycle new Object.extend({})() [alloc, kept alive] 5,226 4,118 -21% lifecycle new Object.extend({})() [release: V8 gc] 2,259 409 -82% lifecycle new Object.extend({})() [release: Java gc] 1,025 747 -27% lifecycle JniBench.newObjectInJava() [alloc, kept alive] 9,281 1,982 -79% lifecycle JniBench.newObjectInJava() [release: V8 gc] 2,266 323 -86% lifecycle JniBench.newObjectInJava() [release: Java gc] 1,028 742 -28% instance.self() [50k live wrappers] 462 418 -9% callback.noArgs() 1,637 457 -72% callback.twoInts(int,int) 2,149 1,408 -34% callback.oneString(String) 2,730 1,976 -28% callback.intReturn(int) -> int 2,470 1,768 -28% callback.oneObject(Object) 2,282 1,692 -26% callback.oneObject(new Object) 10,098 3,085 -69% callback.oneObject(new, 16 classes) 10,742 3,118 -71% contention 1 thread(s), no args 4,224 2,109 -50% contention 1 thread(s), 3 existing objects 5,541 4,108 -26% contention 1 thread(s), 3 new objects 26,182 8,802 -66% contention 1 thread(s), 3 new objects of 16 classes 27,442 8,858 -68% contention 2 thread(s), no args 17,386 3,083 -82% contention 2 thread(s), 3 existing objects 14,408 3,552 -75% contention 2 thread(s), 3 new objects 63,448 5,872 -91% contention 2 thread(s), 3 new objects of 16 classes 59,982 6,036 -90% contention 4 thread(s), no args 13,219 2,458 -81% contention 4 thread(s), 3 existing objects 13,490 3,216 -76% contention 4 thread(s), 3 new objects 56,063 6,456 -88% contention 4 thread(s), 3 new objects of 16 classes 57,373 6,777 -88% The contention rows run with the admission gate's default 50 µs spin. Callback rows are compared raw: the harness's per-round reference callback is itself a callback this PR speeds up. Earlier, per-commit measurements The single-allocation link, instance-template wrapper and -Bsymbolic-functions commits, against the previous head of this PR (b63cc516). Optimized runtime, slow clock state, 12 launches each, ns: benchmark before after Δ instance.noop() 246 224 -9% instance.getInt() 247 217 -12% field.get int 281 264 -6% instance.takeObject(Object) 533 495 -7% static.newObjectInJava() [new wrapper] 8,292 2,094 -75% static.newObjectOfManyClasses() [16 classes] 9,034 2,924 -68% new java.lang.Object() 6,075 2,607 -57% new Object.extend({})() 7,708 6,666 -14% lifecycle new java.lang.Object() [release: V8 gc] 879 479 -46% lifecycle new java.lang.Object() [release: Java gc] 1,633 1,405 -14% callback.twoInts(int,int) 2,560 2,430 -5% callback.oneObject(new Object) 9,490 5,217 -45% The ObjectTable commit then takes the Java-GC release rows from -14% to about -31% against the same baseline, and leaves the other rows within ±2% apart from instance.takeObject(Object) (+7 ns, see Notes for review). First access of large classes, in µs. The first table is the static-field commit against the commit before it. The second is the other three commits against the static-field commit, from one launch pair per build in the same clock state with a full GC before each row. First access is measured once per launch, so each value is a median over 8 launches. first access before static-field commit android.R.attr 8,914 1,570 android.R.style 6,154 897 android.R.drawable 1,210 896 android.R.id 642 282 first access static-field commit this PR Δ android.view [package] 816 156 -81% android.widget [package] 949 168 -82% android.widget.TextView 1,550 1,005 -35% android.R.style 875 701 -20% android.R.attr 1,546 1,279 -17% android.view.View 2,163 2,039 -6% android.app.Activity 978 935 -4% sum of all first-access rows 10,550 7,950 -25% The non-constructor commit, against the commit before it (same method): first access before after Δ android.view.View 2,013 1,534 -24% android.widget.TextView 997 800 -20% android.app.Activity 929 763 -18% sum of all first-access rows 8,060 6,920 -14% Steady state is unchanged: View.getAlpha() 261 → 259 ns, reading android.view.View through the package 15.6 ns in both, small-class static field reads and writes within ±1%. The method-name commit, against the commit before it (fast clock state, ns): benchmark before after Δ callback.noArgs() 1,896 1,599 -16% callback.twoInts(int,int) 2,409 2,146 -11% callback.intReturn(int) -> int 2,519 2,250 -11% callback.oneString(String) 2,933 2,655 -9% callback.oneObject(Object) 2,435 2,167 -11% callback.oneObject(new Object) 8,428 7,670 -9% JS→Java calls and field reads are unchanged (±1%). The object-id commit, against the commit before it (fast clock state, ns, 12 launches each): benchmark before after Δ callback.twoInts(int,int) 2,217 1,890 -15% callback.intReturn(int) -> int 2,361 1,985 -16% callback.oneString(String) 2,743 2,430 -11% callback.oneObject(Object) 2,202 2,042 -7% callback.oneObject(new Object) 7,807 7,508 -4% callback.oneObject(new, 16 classes) 7,411 7,440 +0% The new-object commits (identity-index hash, cached MetadataNode), against the commit before them (slow clock state, ns, 12 launches each): benchmark before after Δ static.newObjectInJava() [new wrapper] 6,613 5,342 -19% static.newObjectOfManyClasses() [16 classes] 6,004 5,455 -9% new java.lang.Object() 7,483 6,960 -7% lifecycle new java.lang.Object() [alloc, kept alive] 7,314 6,759 -8% lifecycle release: Java gc (3 rows) 1,682-1,720 1,620-1,646 -4% callback.oneObject(new Object) 11,221 10,478 -7% callback.oneObject(new, 16 classes) 11,388 10,574 -7% lifecycle JniBench.newObjectInJava() [alloc, kept alive] 8,515 8,971 +5% callback.noArgs() is bimodal on this phone: a launch runs at either ~500 or ~1,350-1,700 ns depending on how ART compiles the call path. Before this commit 1 launch in 12 hit the fast mode; after it, 5-7 in 12 did. Its median (1,695 -> 1,308) says little either way. Re-measured The first main → PR run above showed first access of android.R ~30 µs slower and small-class final static reads ~4 ns slower, from only 3 main launches in the fast clock state. A re-run with main, six points along this PR's history and its tip, all with the same harness, interleaved, 8 launches each in the fast state, put both within noise: android.R 312 vs 317 µs (history points 300–332), final static read 74 vs 73 ns. Notes for review Tried and dropped for first access: Lazy prototype methods: these cut View's first access by 40%, but each method's first call got more expensive. With V8's SetLazyDataProperty, 20 first calls took 443 µs instead of 207, and later calls were 5% slower. With an accessor that replaces itself, they took 3.5 ms: the delete makes V8 rebuild the whole prototype's layout. External one-byte strings for metadata names: safe, but slower than internalized strings for short names. Most of View's remaining ~1.5 ms is turning its ~665 methods into JS functions. Tried and dropped for the call path: A per-thread direct ByteBuffer for packed arguments and primitive results, instead of a long[] and JNI array copies, made callbacks with arguments ~200 ns slower: each DirectByteBuffer access is a native call on ART. Merging JEnv's and Runtime's thread-locals into one struct saved 3-4 ns on the simplest JS->Java calls and cost ~20 ns on calls passing objects. Id-indexed tables: before the radix trees, robin_hood::unordered_flat_map and ankerl::unordered_dense::map were measured in place of std::unordered_map for m_idToObject and made the Java-GC release 14-15% and 22-23% slower (sequential ids and libc++'s identity std::hash walk the buckets nearly in order; both re-mix the hash). Pages of 1,024 ids were tried before the radix tree: a long-lived object kept a whole page alive, and moving the survivors of sparse pages to a hash map made every call on a long-lived object (listeners, views) pay a hash lookup, ~11 ns on instance.noop(). With 64-id leaves in 64-leaf chunks a long-lived object keeps at most ~1 KB of each tree alive, and lookups stay direct. Against 1,024-id pages the tree costs ~7 ns on instance.takeObject(Object) (one more dependent load per lookup) and is otherwise within ±2%. Behavior change, wrapper constructor: wrappers the runtime creates for objects coming from Java no longer have an own enumerable constructor property. wrapper.constructor still returns the class through the prototype, but Object.keys(wrapper) goes from ['constructor'] to [], and hasOwnProperty('constructor') is now false. Objects created with new X() never had it. I found no reader in core, the plugins or angular. Wrappers of extended classes created on the Java side no longer get it either. With profilerOutputDir set (see #2100), wrapper.constructor is now the inner, unwrapped constructor, as it already was for new X() instances. Final static fields by class size: in a class with more than 64 static fields (every android.R inner class), a final field is a read-only data property after its first read, so assigning it is silently ignored (or a TypeError in strict mode). Small classes keep throwing the runtime's "final field" error. Kept that way for the read speed. Prototype-held link (ES5 TypeScript layout): __extends-compiled classes (ts_helpers.js) call Java methods on a plain JS object whose prototype is the registered wrapper until __native(this) swaps them, so receiver resolution still checks one prototype level up. It only runs when the object itself has no link. Internal fields: Java wrappers now have three internal fields (JsInfo, CallSuper, Metadata). Array buffers and views are linked to Java buffers through V8's own two embedder fields; IsJsRuntimeObject accepts both counts, and only three-field objects use the Metadata field. Binding generator change: generated bindings (static and runtime extend) get a second field, objectId__ns, and two accessors. Packing the tag and id into one volatile long was measured too and was no faster, so the two fields keep #2015's accessors unchanged. Behavior change, non-constructors: new view.getAlpha() already threw "No java object found…", because this is not a Java wrapper; it now throws a TypeError (not a constructor). Method functions no longer have a .prototype. Static methods were left constructible on purpose: new SomeClass.staticFactory() returns the factory's object today, and published plugins do this (e.g. new …TransferUtility.builder()). A spec pins that. Gate teardown window: the gate lives in Runtime and inherits the existing teardown window. A Java thread that passes TryGetRuntime while the runtime is being destroyed was already a hazard before this PR. API < 24: there's no StampedLock, so there are no optimistic reads, and every table access stays under the isolate lock as before. Benchmark harness: adding static methods to JniBench slowed its static rows by ~10 ns, through V8's property lookup on the JS constructor. The harness settings therefore live on JniBenchConfig. Any Java class with many statics probably has the same constructor-lookup cost in real apps, and is worth a follow-up. Does your pull request have unit tests? Yes. Emulator suite: runtestsAndVerifyResults-equivalent run on an API 36 emulator, 1511 specs, 0 failures. New specs in testMetadata.js ("Java object wrappers") cover constructor through the prototype, a shared prototype for Java-created and JS-created instances, wrapper identity, a wrapper staying linked while thousands of later wrappers are collected, and super read through an implementation object. In testGC.js, a callback that throws after a GC collected wrappers following its last Java call (aborts under CheckJNI without the fix). Two construction-window specs use a small Java helper (NestedConstruction): a binding instance Java creates inside a JS-driven constructor gets its own JS object (failed before the fix: its toString ran the outer object's JS), and a construction made by a callback during another keeps the outer instance (passes with and without the fix; kept as a guard). New specs in testGC.js ("collected wrappers waiting for a flush") cover: a wrapper reacquired before the flush, or while its liveness check is queued; releasing fresh arguments when a call fails before conversion; several threads passing the same new object getting one wrapper; a synchronous loop that never yields. JVM: ObjectTableTest (11 tests, including ids past Integer.MAX_VALUE, including concurrent registration, exact reads during writes, a randomized comparison against reference maps over ~100k ids, and old ids registered after their range was released) and MethodNameIdsTest (3 tests, including 8 threads registering the same names). The runtime unit tests pass, 30/30. Benchmark harness: every callback round now also times a fixed reference callback (ref/refMin in the output), for comparing launches when the callback rows drift on their own. Summary by CodeRabbit Improvements Java and JavaScript objects retain consistent identity when passed between runtimes, including during concurrent calls and nested construction. Object cleanup and memory management are more reliable during garbage collection and under memory pressure. Java class member access and object wrappers behave more consistently. Performance Runtime benchmarks cover additional access patterns, callback modes, and thread contention. Testing Expanded coverage for object lifecycle, garbage collection, concurrent access, construction, and runtime performance.

Open Graph Description: Description Follow-up to #2092/#2093/#2096/#2097. This PR has three parts: Object lifecycle redesign: a lock-free id table, batched finalizer handling, and class lookups by index. Single-thread fi...

X Description: Description Follow-up to #2092/#2093/#2096/#2097. This PR has three parts: Object lifecycle redesign: a lock-free id table, batched finalizer handling, and class lookups by index. Single-thread fi...

Opengraph URL: https://github.com/NativeScript/android/pull/2099

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6a708657-a93f-4bdf-4367-b0710b5ef4fc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8830:172B92:1359C8C:19D803C:6B012878
html-safe-nonce42b96d8420b42986a91dd2796b796ba6ce1fe111351927cc3eff5978f7dcb2a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODMwOjE3MkI5MjoxMzU5QzhDOjE5RDgwM0M6NkIwMTI4NzgiLCJ2aXNpdG9yX2lkIjoiOTA1MTY0ODA2MjA2MTA5NTAzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7719b34d649dc5c66533eaa562d06f96943f2531adf6710d787c53a9d5eededa
hovercard-subject-tagpull_request:5228673278
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/android/pull/2099/files
twitter:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
og:image:altDescription Follow-up to #2092/#2093/#2096/#2097. This PR has three parts: Object lifecycle redesign: a lock-free id table, batched finalizer handling, and class lookups by index. Single-thread fi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/2099/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2099%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2099%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/2099/files
Reloadhttps://github.com/NativeScript/android/pull/2099/files
Reloadhttps://github.com/NativeScript/android/pull/2099/files
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
edusperonihttps://github.com/edusperoni
mainhttps://github.com/NativeScript/android/tree/main
perf/object-slot-tablehttps://github.com/NativeScript/android/tree/perf/object-slot-table
Conversation 10 https://github.com/NativeScript/android/pull/2099
Commits 42 https://github.com/NativeScript/android/pull/2099/commits
Checks 8 https://github.com/NativeScript/android/pull/2099/checks
Files changed https://github.com/NativeScript/android/pull/2099/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2099/files
perf: faster object lifecycle and JNI calls https://github.com/NativeScript/android/pull/2099/files#top
Show all changes 42 commits https://github.com/NativeScript/android/pull/2099/files
c471ec7 test: benchmark Java threads calling into JS concurrently edusperoni Nov 8, 2026 https://github.com/NativeScript/android/pull/2099/commits/c471ec78cd3abd2a41cf98538be4a1050e4c2d0c
8694f15 perf: keep Java object ids in one table touched only under the isolat… edusperoni Nov 8, 2026 https://github.com/NativeScript/android/pull/2099/commits/8694f158ffcf5ff6cd095180819c3996470c56b1
8e830f8 perf: resolve known objects before taking the isolate lock edusperoni Nov 8, 2026 https://github.com/NativeScript/android/pull/2099/commits/8e830f874e3db06bad1729a3d10b548fc2b73ca8
f5060ce perf: settle collected JS wrappers in batches instead of one JNI call… edusperoni Nov 8, 2026 https://github.com/NativeScript/android/pull/2099/commits/f5060ce85d48473409a9174c51ed8cdff4325286
1301088 perf: settle collected wrappers at the next JS/Java crossing edusperoni Nov 8, 2026 https://github.com/NativeScript/android/pull/2099/commits/130108845ca9aae3c870c7eda68350abf81863ec
718783b test: benchmark new objects of one class against many classes edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/718783b6743a56f440152c6b2ef0e7482574e1e0
5e166e9 perf: look up a wrapped object's class by index instead of by name edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/5e166e9cd2efb0546311d909886276ac91c1e9b9
5eb7b3c perf: register new argument objects before taking the isolate lock edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/5eb7b3cba953d73fc94088244f010f7ea12d8902
82ad1bf test: let the benchmark filter name several rows edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/82ad1bf8cca86448766f968d888c131b4fa33e73
71702e0 perf: settle a finalizer batch under one write lock, and after each call edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/71702e036c38e815237ad22ead7209757fc5dbdd
0579b0b perf: keep the next Java caller awake while another holds the isolate edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/0579b0b90aca02ed088661d7c99f8d198cb2ad8f
3dc8cc4 test: alternate admission spin variants within one benchmark launch edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/3dc8cc483f229642e3cf2a766c140c7909a27b2f
bbc2e8b perf: skip the unconverted-argument cleanup for calls without arguments edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/bbc2e8be87fee5a08cc7dc10e5b5f3465d8344c5
e1d81c3 perf: read a callback's argument types and values in one JNI call edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/e1d81c3bc34b8d339080fb122e893dbb8609bb92
bd08716 perf: register a constructed object and read Java heap usage in one u… edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/bd087166463295f93514ce4b9362b25d83e150a5
478e213 perf: replace a package child's getter with its value on first read edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/478e213583578ae0ff45134c3c8b3320be629da2
f4cbece perf: look up resolved signatures without allocating edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/f4cbece2918ab3743f6221d74429a0c8d2c91ab2
2a07cb7 perf: internalize the runtime's cached property-name strings edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/2a07cb702ed475b2ef15ad6196c19ab3c3d3da9e
61fcbe2 perf: create a Java object's JS wrapper without a constructor call or… edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/61fcbe2d6937bd46ff6e4d481e68a7786da4a727
079ae43 perf: read each thread's cached env and runtime with one TLS lookup edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/079ae432e74a6f506da594e163d342368dcd3edb
7908de0 test: benchmark the first access of large framework classes edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/7908de0745b14a2563bbcd9085aec26411260d5d
9eba5c9 test: benchmark static field reads and writes on a small and a huge c… edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/9eba5c96ff67577add95432e4edf5f9278e1f2b9
706c012 perf: install a large class's static fields without a getter and sett… edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/706c01225174b9ec078d7a46a82776d686b3005b
cb7022a perf: build a large package's object in dictionary mode edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/cb7022a6737f3a0bbf92f9c1bf86c97dbdca2a15
7c79224 perf: create member names internalized, straight from the metadata edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/7c79224265cfa8a8275c2c608364fe9fb02d6160
85a82dc perf: find a method's base-class counterpart by hash, not by a scan edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/85a82dcd939ba127a700bbf0296858b11de2a712
7a16959 perf: create Java methods and accessors as non-constructors edusperoni Nov 9, 2026 https://github.com/NativeScript/android/pull/2099/commits/7a16959e3cfae97d14c75c93247e6e00c8dd59aa
8da7000 perf: keep each callback method name's V8 string instead of rebuildin… edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/8da700054f4195b434027835c08635f0db1dac59
32c17d1 perf: let a binding carry its JS object id, and look runtimes up by i… edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/32c17d1ef6a23fcd2870a31ac030a1dc5c8c8dd4
1de228f perf: keep each identity-index entry's hash so a lookup miss stays in… edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/1de228ff4324c9426e7f6b1a1752f847025cbe0f
78f344d perf: cache a wrapper class's MetadataNode and allocate a link's hand… edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/78f344dc0cd94ad1b206b9dbdc862838e1d0eb6f
b63cc51 perf: resolve a callback's receiver wrapper with one map lookup edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/b63cc5161d20afebeae7df3ce7c169fed21f4f6c
69efd2c test: time a reference callback alongside every callback benchmark round edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/69efd2c175a8b198e8cec0915f5bead14b3ae747
f1f3669 perf: keep a linked object's state in one allocation, indexed by id edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/f1f3669690ae397bcad9f574fd2690d7e9da1081
926f3d1 perf: build Java object wrappers from the class's instance template edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/926f3d1c66a28257fb4a6f49275298d6c63d5a60
6feaa50 perf: index ObjectTable's entries directly by id edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/6feaa50c4b7f25faa35fae444a6bb1919a93b8dd
350ddd5 build: bind calls between the runtime's own functions directly edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/350ddd5a5eaa468d87325da397d40248ff115570
cde9b0f fix: address review findings on the object lifecycle changes edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/cde9b0f60990bf3b4710960bc1060b6443fc1219
a5c973b fix: let only the instance JS is constructing take its object id edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/a5c973b336cb48a810bdab8a80c9d080767dd43b
a85fa88 perf: pass a binding argument's own object id to a callback edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/a85fa887a0c1922461284831e84f387715a5dcfd
c118b09 perf: build wrappers of Java-created extended instances from their te… edusperoni Nov 10, 2026 https://github.com/NativeScript/android/pull/2099/commits/c118b09c9f5b801476c7d3e87f1972fc7b28f417
a97a4e9 fix: keep a Java-created extended instance on its class's current pro… edusperoni Nov 11, 2026 https://github.com/NativeScript/android/pull/2099/commits/a97a4e9b756c65341e42dffac7e385092448ffb0
Clear filters https://github.com/NativeScript/android/pull/2099/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2099/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2099/files
jniBenchmarks.js https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
testGC.js https://github.com/NativeScript/android/pull/2099/files#diff-20bba87551a65fc6f1bda40b02771863735355a913719d4ad323000319577fc4
testMetadata.js https://github.com/NativeScript/android/pull/2099/files#diff-193a1a751ddee606f1e70e86f85d4dd8b6c7cd13b5519c9d348635dfe6cacb41
ContentionBench.java https://github.com/NativeScript/android/pull/2099/files#diff-a4c6d4e80ce811e3abe950a5eb7ac97e69b30c332186d8780ddd87331a5e3636
FreshArgs.java https://github.com/NativeScript/android/pull/2099/files#diff-a4a706835f544b1ff0b728c1ca53b83bf51fe4245f7bb3d9f429f7a32295e0b1
JavaCreated.java https://github.com/NativeScript/android/pull/2099/files#diff-a0e5e40503f52fade95e5b154fbe2f2f0eda4e3883b2eeead08ddf073ea40bf3
JniBench.java https://github.com/NativeScript/android/pull/2099/files#diff-a6c74c8ce4483e4d29fcc4025edff4e9811cf19a962996d79bb3cf77fd313bee
JniBenchConfig.java https://github.com/NativeScript/android/pull/2099/files#diff-432255040d7dbeb472007dca124d90fecf1778870c6b0625ea431824cab34da6
NestedConstruction.java https://github.com/NativeScript/android/pull/2099/files#diff-4220f48ed535aad6ed80936fb47395a6d9795c94d70cdc619a8174960a486fc3
StaticFieldBench.java https://github.com/NativeScript/android/pull/2099/files#diff-3846e3f5f79d7cb9a66b112320ebe2ff1a0b492464d1fec7a2e3f63e93c50e9a
WrapperHolder.java https://github.com/NativeScript/android/pull/2099/files#diff-f023fce4b389dc71ba0ea9b8a585946b469324fdc879912d7c0d29c3c59815f3
FieldsWriterImpl.java https://github.com/NativeScript/android/pull/2099/files#diff-e68e10f6e74ede4c10384ddc71627ecba33d2c53b7c57df42c826dc834fc7938
MethodsWriterImpl.java https://github.com/NativeScript/android/pull/2099/files#diff-4f042009e1583ee7d29bc0a57fb28eefe684216ea2f879d083170068ff638484
NativeScriptRuntimeBound.java https://github.com/NativeScript/android/pull/2099/files#diff-94ce7db00414273c1f6d78e44c0cd1c2bcc1da260eaa3dcb783a4c90f5f259b5
GeneratorTest.java https://github.com/NativeScript/android/pull/2099/files#diff-1a212e1ea9f5a283c5f65c16367b45f5582dc2f144f6433e12a84928798a1bc9
NativeScriptRuntimeBound.java https://github.com/NativeScript/android/pull/2099/files#diff-291d29ca3242e258a5e628064f8cb7d02030cf441c2088b243acaba4a4b8ae55
Dump.java https://github.com/NativeScript/android/pull/2099/files#diff-aac54fe1bd2d0c924d4676ef5fc0dcc1f3c5d1e212a4b6c160ceb0c9c88b83e5
CMakeLists.txt https://github.com/NativeScript/android/pull/2099/files#diff-9aa48152a82c07a60ab6e09923a9b266e2985f78e579653848df730cd8ec5e4c
AdmissionGate.h https://github.com/NativeScript/android/pull/2099/files#diff-829ee9404f3817e23d8f7af96e82b565a1911a18bfc74c0f251163628001f1c1
ArgConverter.cpp https://github.com/NativeScript/android/pull/2099/files#diff-86196b2a12999ec659c091aaa11bf59cae203ca3bbf677eb4669bc53df6218a7
ArgConverter.h https://github.com/NativeScript/android/pull/2099/files#diff-2386842e1037b1a0d29524b3318830437c7b9f365803e8851816071da4264bab
ArrayHelper.cpp https://github.com/NativeScript/android/pull/2099/files#diff-80d0684b73853a3a7490064fa105595f46c5be59777c2ef04d4c5002f22fbd84
CallbackHandlers.cpp https://github.com/NativeScript/android/pull/2099/files#diff-a784229ab7689cd9ce3d502557091158b2943269fad47c1891a15a07c355500e
CallbackHandlers.h https://github.com/NativeScript/android/pull/2099/files#diff-1f7b413d95b12ea3b982950185ce4f7e56c5c02952d656a5dcc0ff8878e37722
FieldAccessor.cpp https://github.com/NativeScript/android/pull/2099/files#diff-5e991aad04b31c0e151e4adbed673d0ce073d20e3ce3050c59f864907f96bccf
JEnv.cpp https://github.com/NativeScript/android/pull/2099/files#diff-73f675d8548b1b431bfd52b52b051f173bdf8408f03caf73f00891debdb15641
JEnv.h https://github.com/NativeScript/android/pull/2099/files#diff-1302cc560063ed1fce2de90c87f9f5ef8dc8b0a210e3571878dc655933951032
MetadataNode.cpp https://github.com/NativeScript/android/pull/2099/files#diff-6f6c5b64f60875e24b75b8a21b3164f114822aa7e5add5755f072f36403f7f8b
MetadataNode.h https://github.com/NativeScript/android/pull/2099/files#diff-ac7f7c34025389ca6f1145667245073945ad1bc6b2b1285a05bf4d084924f091
MetadataReader.h https://github.com/NativeScript/android/pull/2099/files#diff-4fda5fc04e9fe4f5478ca473515ea8d2af62f9187b876614daaa2d023c459104
MethodCache.cpp https://github.com/NativeScript/android/pull/2099/files#diff-a66a356aeaaeaeb65c73d7d5cec58ad7f02506b4bae581ec8b8c03de93a682b9
MethodCache.h https://github.com/NativeScript/android/pull/2099/files#diff-021a5ac16f3a278524f11cb83c2d71854ca5742c28dde035be5bcb75d0739b5e
ObjectIdIndex.h https://github.com/NativeScript/android/pull/2099/files#diff-79965a39cfefbfe0160768e1706b9094d82e9f168518feb7de97768c8a0e02d4
ObjectManager.cpp https://github.com/NativeScript/android/pull/2099/files#diff-0591ab8dc271af7e8ef11fabf0642e44b932f38003bd07a3696de149a02b2c9b
ObjectManager.h https://github.com/NativeScript/android/pull/2099/files#diff-d491cf1566875df8740b3e9d732ac891286a776623aad17b249b36781ac7047d
Runtime.cpp https://github.com/NativeScript/android/pull/2099/files#diff-b9490640f5d26f7cd6b9a176a2142b8e985a6aac9e2d64287de37fc694e80cc3
Runtime.h https://github.com/NativeScript/android/pull/2099/files#diff-87f802d33bb6047fdb5ef6dc8d73551485ecb092edff4de77ecc9affc3e9341c
V8GlobalHelpers.cpp https://github.com/NativeScript/android/pull/2099/files#diff-5308898b177c89b88359a383b6949a600174634b0ddb8bc064b682676c239020
V8StringConstants.cpp https://github.com/NativeScript/android/pull/2099/files#diff-c8b460c2ca71019e700b24a2d30c7828e2718a2ad541fcdaf58ab14efd311cd8
V8StringConstants.h https://github.com/NativeScript/android/pull/2099/files#diff-8162bcde4fb321e221b9d5bccd6bfa615ffac3c67b894b50c7a66a7f7ac1b8eb
com_tns_Runtime.cpp https://github.com/NativeScript/android/pull/2099/files#diff-12525df874d33d128becf0dc90001af73fcb89c72d20a9f185d5070848daef23
MethodNameIds.java https://github.com/NativeScript/android/pull/2099/files#diff-88a345c78050d4481192d1373d2c7c8d0394ed551ccdd809a310d5b8a4fd5382
NativeScriptAbstractMap.java https://github.com/NativeScript/android/pull/2099/files#diff-ccfce59d5b477c30e1c5a044b6db806166c075aa8c412b294427aff2d1c5f830
NativeScriptHashMap.java https://github.com/NativeScript/android/pull/2099/files#diff-6bd4e51216437a77dc65d96469c8b3d3ecdd6764846938b609b1a90cc32772dd
NativeScriptWeakHashMap.java https://github.com/NativeScript/android/pull/2099/files#diff-05a508f0347659f4a984fb99e24a3b1799a8ff6babb4d6c6c71a5cebf4d4c961
ObjectTable.java https://github.com/NativeScript/android/pull/2099/files#diff-33d4dbc945da122f3865e371aad3c0526854321ac8d5fc0aacc045fd11c6fca3
Runtime.java https://github.com/NativeScript/android/pull/2099/files#diff-cf9bb4e9ca1a476cacd6e270fc8bcd12c71f89d52d272915bc99df57b3581f59
MethodNameIdsTest.java https://github.com/NativeScript/android/pull/2099/files#diff-21f4b72c8e8bd0784ef16d1ee35fc7741d7fd7a438eb42d374be60e2ae1faf5f
ObjectTableTest.java https://github.com/NativeScript/android/pull/2099/files#diff-25dab41a4ffbbdcee58c1077e85cda611c32826f9c6be6411c5f04313cd98ae1
RuntimeTest.java https://github.com/NativeScript/android/pull/2099/files#diff-cd208f6c184af34f7572487dc336e584f7787c6a154421bc46c3956b4b1088b8
test-app/app/src/main/assets/app/tests/benchmarks/jniBenchmarks.jshttps://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
View file https://github.com/NativeScript/android/blob/a97a4e9b756c65341e42dffac7e385092448ffb0/test-app/app/src/main/assets/app/tests/benchmarks/jniBenchmarks.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2099/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
https://github.com/NativeScript/android/pull/2099/files#diff-a21c35e53018a8758692863d0121c2e0dcee0e46ff518cf18830c2eb7be789fb
Please reload this pagehttps://github.com/NativeScript/android/pull/2099/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2099/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.