Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Make filter-from-backend return a lazy seq#5

Open
alexkehayias wants to merge 6 commits intodevfrom
lazy-filter-from-backend
Open

Make filter-from-backend return a lazy seq#5
alexkehayias wants to merge 6 commits intodevfrom
lazy-filter-from-backend

Conversation

@alexkehayias
Copy link
Copy Markdown
Contributor

About

This is meant to reduce the memory overhead when there are many keys in
a given location when trying to use filter-from-backend. Actual calls to
s3 are lazy and only perform IO as the sequence is consumed.

Tests

AWS_ACCESS_KEY_ID=<your api key> AWS_SECRET_ACCESS_KEY=<your api secret> lein test

Reviewers

@jeremyheiler @nathants

This is meant to reduce the memory overhead when there are many keys in
a given location when trying to use filter-from-backend. Actual calls to
s3 are lazy and only perform IO as the sequence is consumed.
Comment thread src/archive_bolt/backends/s3.clj Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're lazy-cating accum twice?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants