[TIMOB-20062] Android: Reuse the same hyperloop proxy for single Java object
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Done |
Resolution Date | 2016-08-04T02:53:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0 |
Components | Android, Hyperloop |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2015-11-24T20:25:18.000+0000 |
Updated | 2016-08-04T02:53:02.000+0000 |
Description
We should cache instance proxies and ensure we always re-use/return the same hyperloop proxy for the same underlying Java object. Right now we wrap and unwrap with new instances every time. This will involve some caching mechanism. We should also look into doing a cache of class proxies to improve performance, since we hang static fields, methods and constructors off the class proxy instances.
https://github.com/appcelerator/hyperloop-android-module/commit/77b7ff532a5c230c19e82fd7e7cbeea5836f8ffb