Skip to content

[Web] onnxruntime-node Linux addon binaries contain duplicate identical copies of libonnxruntime.so.x taking up extra ~40MB #23956

Open
@rotemdan

Description

@rotemdan

Describe the issue

Linux (x64):
Image

Linux (arm64):
Image

I tested the files libonnxruntime.so.1 and libonnxruntime.so.1.21.0 are identical. On 1.21.0, SHA256 hashes:

x64:

05BFDDEEFC536A44478C20226218DAE8853995518BB2A994B4FA15A996F5F412

arm64:

36671B53885A8433882C4DB360138BD060F3580F7D7CB6578050E755E83B6128

This duplication seems to have started in 1.19.0. It's not there in 1.18.0

Image

Can anything be done to reduce that extra ~40MB from the installed package size? Is it necessary?

I guess the gzip compression could with the npm (downloaded) package size, but I thought I should report this since I haven't seen it reported before (sorry if this is a duplicate).

To reproduce

See:

https://www.npmjs.com/package/onnxruntime-node/v/1.21.0?activeTab=code

Urgency

No response

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.21.0

Execution Provider

Other / Unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:webissues related to ONNX Runtime web; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions