Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add streaming support to createExtractorFromData method #409

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zombieJ
Copy link

@zombieJ zombieJ commented Dec 25, 2024

I'm using Copilot to generate streaming support. But not validate yet. This still need time.

Modify `createExtractorFromData` method to support streaming and reduce memory usage.

* **src/index.esm.ts**
  - Update `createExtractorFromData` to accept `ArrayBuffer` or `ReadableStream` for data.
* **src/js/ExtractorData.ts**
  - Update constructor to handle `ArrayBuffer` or `ReadableStream`.
  - Add `loadStreamData` method to process streaming data.
* **src/js/ExtractorData.helper.ts**
  - Update `DataFile` class to support streaming.
  - Add `loadStreamData` method to read data from stream.
* **README.md**
  - Update documentation to reflect new streaming capabilities.
* **src/test/ExtractorData.spec.ts**
  - Add tests to verify streaming functionality.
@zombieJ zombieJ changed the title Add streaming support to createExtractorFromData method [WIP] Add streaming support to createExtractorFromData method Dec 25, 2024
@zombieJ zombieJ marked this pull request as draft December 25, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant