Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20062] Android: Reuse the same hyperloop proxy for single Java object

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionDone
Resolution Date2016-08-04T02:53:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsAndroid, Hyperloop
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-11-24T20:25:18.000+0000
Updated2016-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.

Comments

  1. Christopher Williams 2015-11-24

    https://github.com/appcelerator/hyperloop-android-module/commit/77b7ff532a5c230c19e82fd7e7cbeea5836f8ffb

JSON Source