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 {
130130}
131131
132132/// Main entry point for JSON string escaping with SIMD acceleration
133- #[ inline]
134133pub fn escape < S : AsRef < str > > ( input : S ) -> String {
135134 #[ cfg( target_arch = "x86_64" ) ]
136135 {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ fn sub(a: *const u8, b: *const u8) -> usize {
3030}
3131
3232#[ target_feature( enable = "avx512f" , enable = "avx512bw" ) ]
33+ #[ inline]
3334pub unsafe fn escape_avx512 < S : AsRef < str > > ( input : S ) -> String {
3435 let s = input. as_ref ( ) ;
3536 let bytes = s. as_bytes ( ) ;
@@ -249,6 +250,7 @@ pub unsafe fn escape_avx512<S: AsRef<str>>(input: S) -> String {
249250}
250251
251252#[ target_feature( enable = "avx2" ) ]
253+ #[ inline]
252254pub unsafe fn escape_avx2 < S : AsRef < str > > ( input : S ) -> String {
253255 let s = input. as_ref ( ) ;
254256 let bytes = s. as_bytes ( ) ;
@@ -488,6 +490,7 @@ pub unsafe fn escape_avx2<S: AsRef<str>>(input: S) -> String {
488490}
489491
490492#[ target_feature( enable = "sse2" ) ]
493+ #[ inline]
491494pub unsafe fn escape_sse2 < S : AsRef < str > > ( input : S ) -> String {
492495 let s = input. as_ref ( ) ;
493496 let bytes = s. as_bytes ( ) ;
You can’t perform that action at this time.
0 commit comments