Skip to content

Commit 0a1474d

Browse files
indutnyMylesBorins
authored andcommitted
deps: update llhttp to 2.1.3
PR-URL: #35435 Refs: nodejs/llhttp#65 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent e70b052 commit 0a1474d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

deps/llhttp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ were tried. However, all of them failed due to resulting significant performance
2222
degradation.
2323

2424
This project is a port of [http_parser][0] to TypeScript. [llparse][1] is used
25-
to generate the output C and/or bitcode artifacts, which could be compiled and
25+
to generate the output C source file, which could be compiled and
2626
linked with the embedder's program (like [Node.js][7]).
2727

2828
## Performance
@@ -31,7 +31,7 @@ So far llhttp outperforms http_parser:
3131

3232
| | input size | bandwidth | reqs/sec | time |
3333
|:----------------|-----------:|-------------:|-----------:|--------:|
34-
| **llhttp** _(C)_ | 8192.00 mb | 1777.24 mb/s | 3583799.39 ops/sec | 4.61 s |
34+
| **llhttp** | 8192.00 mb | 1777.24 mb/s | 3583799.39 ops/sec | 4.61 s |
3535
| **http_parser** | 8192.00 mb | 694.66 mb/s | 1406180.33 req/sec | 11.79 s |
3636

3737
llhttp is faster by approximately **156%**.

deps/llhttp/include/llhttp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define LLHTTP_VERSION_MAJOR 2
55
#define LLHTTP_VERSION_MINOR 1
6-
#define LLHTTP_VERSION_PATCH 2
6+
#define LLHTTP_VERSION_PATCH 3
77

88
#ifndef LLHTTP_STRICT_MODE
99
# define LLHTTP_STRICT_MODE 0

deps/llhttp/src/llhttp.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static const unsigned char llparse_blob7[] = {
4949
};
5050
#ifdef __SSE4_2__
5151
static const unsigned char ALIGN(16) llparse_blob8[] = {
52-
0x9, 0x9, ' ', '~', 0x80, 0xfe, 0x0, 0x0, 0x0, 0x0, 0x0,
52+
0x9, 0x9, ' ', '~', 0x80, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0,
5353
0x0, 0x0, 0x0, 0x0, 0x0
5454
};
5555
#endif /* __SSE4_2__ */
@@ -1595,7 +1595,7 @@ static llparse_state_t llhttp__internal__run(
15951595
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
15961596
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
15971597
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1598-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
1598+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
15991599
};
16001600
if (p == endp) {
16011601
return s_n_llhttp__internal__n_header_value_connection_token;
@@ -1916,7 +1916,7 @@ static llparse_state_t llhttp__internal__run(
19161916
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
19171917
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
19181918
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1919-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
1919+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
19201920
};
19211921
if (p == endp) {
19221922
return s_n_llhttp__internal__n_header_value;
@@ -1975,7 +1975,7 @@ static llparse_state_t llhttp__internal__run(
19751975
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
19761976
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
19771977
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1978-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
1978+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
19791979
};
19801980
if (p == endp) {
19811981
return s_n_llhttp__internal__n_header_value_te_token;
@@ -6863,7 +6863,7 @@ static const unsigned char llparse_blob7[] = {
68636863
};
68646864
#ifdef __SSE4_2__
68656865
static const unsigned char ALIGN(16) llparse_blob8[] = {
6866-
0x9, 0x9, ' ', '~', 0x80, 0xfe, 0x0, 0x0, 0x0, 0x0, 0x0,
6866+
0x9, 0x9, ' ', '~', 0x80, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0,
68676867
0x0, 0x0, 0x0, 0x0, 0x0
68686868
};
68696869
#endif /* __SSE4_2__ */
@@ -8358,7 +8358,7 @@ static llparse_state_t llhttp__internal__run(
83588358
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
83598359
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
83608360
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
8361-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
8361+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
83628362
};
83638363
if (p == endp) {
83648364
return s_n_llhttp__internal__n_header_value_connection_token;
@@ -8679,7 +8679,7 @@ static llparse_state_t llhttp__internal__run(
86798679
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
86808680
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
86818681
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
8682-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
8682+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
86838683
};
86848684
if (p == endp) {
86858685
return s_n_llhttp__internal__n_header_value;
@@ -8738,7 +8738,7 @@ static llparse_state_t llhttp__internal__run(
87388738
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
87398739
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
87408740
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
8741-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
8741+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
87428742
};
87438743
if (p == endp) {
87448744
return s_n_llhttp__internal__n_header_value_te_token;

0 commit comments

Comments
 (0)