GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LZ4FrameInputStream should read InputStream lazily · Issue #146 · lz4/lz4-java

This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

LZ4FrameInputStream should read InputStream lazily #146

Copy link
Copy link
Closed
Closed
LZ4FrameInputStream should read InputStream lazily#146
Copy link

Description

@bjmi
bjmi
opened on Sep 13, 2019
Issue body actions

Creating a new LZ4FrameInputStream instance already reads the underlying InputStream by calling nextFrameInfo().
This call should be deferred until an actual read(...) is performed i.e. separate instance creation and utilization.

Advantages

  • If input is never read or used no resources or handles would be allocated.
  • My use-case: underlying InputStream is not ready when creating LZ4FrameInputStream but actually is when used.
Reacted by Ismael Juma and Madjosz

Activity

  1. odaira
    added a commit that references this issue on Jul 30, 2020

    Avoid reading InputStream when LZ4FrameInputStream is created (#146)

    5e23573
  2. odaira commented on Jul 30, 2020

    @odaira
    odaira
    on Jul 30, 2020
    Member
    More actions

    Fixed by 5e23573. Instance creation of LZ4FrameInputStream becomes 300x faster. Thanks for your suggestion!

    Reacted by Madjosz
  3. odaira
    closed this as completedon Jul 30, 2020
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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.