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

chore(ext/fetch): custom arity #14198

Merged
merged 2 commits into from
Apr 23, 2022
Merged

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Apr 4, 2022

deno_fetch

LLVM lines:

Before:

48968 (100%)  2038 (100%)  (TOTAL)

After:

48163 (100%)  2018 (100%)  (TOTAL)

@littledivy littledivy changed the title chore(ext/fetch): custom arity for less LLVM lines chore(ext/fetch): custom arity Apr 4, 2022
ext/fetch/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LLVM lines = lines of LLVM IR? How do you measure that?

@crowlKats
Copy link
Member

LLVM lines = lines of LLVM IR? How do you measure that?

there is cargo-llvm-lines

@littledivy littledivy requested a review from AaronO April 5, 2022 05:09
@littledivy littledivy self-assigned this Apr 5, 2022
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +188 to 194
method: ByteString,
url: String,
headers: Vec<(ByteString, ByteString)>,
client_rid: Option<u32>,
has_body: bool,
body_length: Option<u64>,
data: Option<ZeroCopyBuf>,
Copy link
Member

Choose a reason for hiding this comment

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

That's a lot of arguments :P I'm not convinced this is preferable to having an "option bag", but if it results in fewer LLVM lines (and potentially faster compile) then we should go with it.

@littledivy littledivy merged commit 2eb8c3b into denoland:main Apr 23, 2022
crowlKats pushed a commit that referenced this pull request Apr 28, 2022
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.

None yet

5 participants