Skip to content

Performance issue for using List in JNI #149

@pluris

Description

@pluris

I was using ros2 java and noticed that the performance was very slow in List.

When communicating with ros2 native, there is a serious performance difference in ros2java side.
So, I compared the performance by creating a Android JNI project.

  • Array TIME : 17.532115(ms)
  • List TIME : 1419.957922(ms)

How about using Array instead of List?
The usability is not good, but the difference in performance is significant, so I suggest.

Need some more modifications, but to me it also has an improved code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions