File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ pub fn escape_generic<S: AsRef<str>>(input: S) -> String {
130
130
}
131
131
132
132
/// Main entry point for JSON string escaping with SIMD acceleration
133
- #[ inline]
134
133
pub fn escape < S : AsRef < str > > ( input : S ) -> String {
135
134
#[ cfg( target_arch = "x86_64" ) ]
136
135
{
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ fn sub(a: *const u8, b: *const u8) -> usize {
30
30
}
31
31
32
32
#[ target_feature( enable = "avx512f" , enable = "avx512bw" ) ]
33
+ #[ inline]
33
34
pub unsafe fn escape_avx512 < S : AsRef < str > > ( input : S ) -> String {
34
35
let s = input. as_ref ( ) ;
35
36
let bytes = s. as_bytes ( ) ;
@@ -249,6 +250,7 @@ pub unsafe fn escape_avx512<S: AsRef<str>>(input: S) -> String {
249
250
}
250
251
251
252
#[ target_feature( enable = "avx2" ) ]
253
+ #[ inline]
252
254
pub unsafe fn escape_avx2 < S : AsRef < str > > ( input : S ) -> String {
253
255
let s = input. as_ref ( ) ;
254
256
let bytes = s. as_bytes ( ) ;
@@ -488,6 +490,7 @@ pub unsafe fn escape_avx2<S: AsRef<str>>(input: S) -> String {
488
490
}
489
491
490
492
#[ target_feature( enable = "sse2" ) ]
493
+ #[ inline]
491
494
pub unsafe fn escape_sse2 < S : AsRef < str > > ( input : S ) -> String {
492
495
let s = input. as_ref ( ) ;
493
496
let bytes = s. as_bytes ( ) ;
You can’t perform that action at this time.
0 commit comments