Skip to content

Re-evaluate caching strategy  #97

Description

@frmdstryr

Currently the bridge generates an id (an incrementing integer) for each new object in python. This works fine for most cases.

However if a constructor from java returns more than one new object this pattern fails... eg https://developer.android.com/reference/android/hardware/usb/UsbManager#getDeviceList() returns a hashmap of devices.

A better strategy may be to store items using their hashCode .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions