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

perf(fzf): optimize curl responding speed #384

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions lua/fzfx/fzf_helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,21 @@
"curl",
"-s",
"-S",
"--disable",
"--parallel",
"-q",
"-k",
"-Z",
"--parallel-immediate",
"--http2",
"--retry",
"0",
"--connect-timeout",
"0.5",
"-m",
"0.5",
"--noproxy",
"*",
"-XPOST",
string.format("localhost:%s", vim.trim(port)),
string.format("127.0.0.1:%s", vim.trim(port)),

Check warning on line 316 in lua/fzfx/fzf_helpers.lua

View check run for this annotation

Codecov / codecov/patch

lua/fzfx/fzf_helpers.lua#L316

Added line #L316 was not covered by tests
"-d",
body,
}, function(line)
Expand Down
Loading