Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Heavy browser performance impact #92

Closed
@Beanow

Description

@Beanow

Performing a test by ipfs.files.get on a larger file, such as a 4MB audio file. Secio processes roughtly 7,5MB of data with AES CTR-mode decrypt here https://github.com/libp2p/js-libp2p-secio/blob/master/src/etm.js#L59.

This process took 249 seconds on a fresh repo (downloading from another tab), 243 seconds of which was spent in Firefox's garbage collection (v55, 64bit Linux) cleaning up the buffers created for decryption. All the while blocking the main thread.

Whereas Chromium consistently farts out.
image

This is a profile where the file was offered by https://orbit.chat/ and downloaded by a different tab.
It doesn't cover the entire 249 seconds, as samples were already being discarded before then.
profile-secio.json.zip

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