Skip to content

Commit 64ec61d

Browse files
authored
perf(fzf): optimize curl responding speed (#384)
* refactor(fzf): optimize curl flags * chore
1 parent b64d480 commit 64ec61d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lua/fzfx/fzf_helpers.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,21 @@ local function send_http_post(port, body)
299299
"curl",
300300
"-s",
301301
"-S",
302-
"--disable",
303-
"--parallel",
302+
"-q",
303+
"-k",
304+
"-Z",
304305
"--parallel-immediate",
306+
"--http2",
307+
"--retry",
308+
"0",
309+
"--connect-timeout",
310+
"0.5",
311+
"-m",
312+
"0.5",
305313
"--noproxy",
306314
"*",
307315
"-XPOST",
308-
string.format("localhost:%s", vim.trim(port)),
316+
string.format("127.0.0.1:%s", vim.trim(port)),
309317
"-d",
310318
body,
311319
}, function(line)

0 commit comments

Comments
 (0)