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
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

alexkehayias
Copy link
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.
(lazy-cat accum
(filter-from-backend conf
location
(lazy-cat accum values)
Copy link
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