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

Trim some heavy dependencies #254

Merged
merged 2 commits into from
Nov 12, 2020
Merged

Trim some heavy dependencies #254

merged 2 commits into from
Nov 12, 2020

Conversation

sagebind
Copy link
Owner

Tis the season to be trimming the tree! Reducing dependencies where it makes sense is a regular task for Isahc to ensure shorter compile times, binary size, or package size.

This time around the goal was to eliminate futures-util from the essential dependencies, since it has long compile times. This included swapping out for futures-lite where needed, or just using our own code, as well as updating Sluice to remove futures-util from there as well.

Also a goal was to unify our preferred channel implementation, since we currently use both futures-channel and crossbeam-channel, depending on the scenario. Here we can replace both with flume which has the nice property of supporting both sync and async operations on one channel.

Tis the season to be trimming the tree! Reducing dependencies where it makes sense is a regular task for Isahc to ensure shorter compile times, binary size, or package size.

This time around the goal was to eliminate `futures-util` from the essential dependencies, since it has long compile times. This included swapping out for `futures-lite` where needed, or just using our own code, as well as updating Sluice to remove `futures-util` from there as well.

Also a goal was to unify our preferred channel implementation, since we currently use _both_ `futures-channel` and `crossbeam-channel`, depending on the scenario. Here we can replace both with `flume` which has the nice property of supporting both sync and async operations on one channel.
@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #254 (de906ad) into master (a9d71aa) will decrease coverage by 0.16%.
The diff coverage is 76.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
- Coverage   72.53%   72.37%   -0.17%     
==========================================
  Files          49       49              
  Lines        2443     2425      -18     
==========================================
- Hits         1772     1755      -17     
+ Misses        671      670       -1     
Impacted Files Coverage Δ
src/interceptor/mod.rs 0.00% <ø> (ø)
src/response.rs 82.35% <ø> (ø)
src/text.rs 68.08% <0.00%> (ø)
src/agent.rs 68.58% <66.66%> (ø)
src/handler.rs 71.31% <66.66%> (-0.06%) ⬇️
src/body.rs 75.38% <75.00%> (-0.81%) ⬇️
src/task.rs 90.90% <80.00%> (-1.69%) ⬇️
src/client.rs 70.76% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9d71aa...de906ad. Read the comment docs.

@sagebind sagebind merged commit 6498f6a into master Nov 12, 2020
@sagebind sagebind deleted the dependency-trimming branch November 12, 2020 23:11
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