From 309481168de02f2dee5a4266359d72866442f665 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 5 Mar 2018 14:25:25 +0100 Subject: Improve a bit the performances (+10%) --- src/sp_pcre_compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_pcre_compat.c') diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c index c3f1d86..795903d 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c @@ -22,8 +22,8 @@ sp_pcre* sp_pcre_compile(const char* const pattern) { return ret; } -bool sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, - size_t len) { +bool ZEND_HOT sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, + size_t len) { int ret = 0; assert(NULL != regexp); -- cgit v1.3