Skip to content

Potential optimization in addSubscriberLocationReportResponse in MAPDialogLsmImpl.java #356

Description

@sgurivir

RepoIQ (http://repoiq.ai) has identified potential optimization in addSubscriberLocationReportResponse in map/map-impl/src/main/java/org/restcomm/protocols/ss7/map/service/lsm/MAPDialogLsmImpl.java

https://github.com/RestComm/jss7/blob/master/map/map-impl/src/main/java/org/restcomm/protocols/ss7/map/service/lsm/MAPDialogLsmImpl.java#L360

toByteArray() call creates a copy of the internal buffer data, which is unnecessary memory allocation

Impact: Additional memory allocation and data copying overhead for each SS7 message encoding operation

Potential Solution: If AsnOutputStream supports direct buffer access or streaming, use that instead of toByteArray() to avoid the copy operation

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