Micro optimisation.

This commit is contained in:
Patrick Pelissier committed 2018-06-02 19:31:07 +02:00
1 parent 25e8c9f637
commit fe38244d7c
1 file changed
+7 -2
+7 -2
View File
@@ -1144,8 +1144,13 @@ string_utf8_p(string_t str)
char c = string_get_char(str, i); \
if (c == sep) { \
string_set_strn(tmp, &str->ptr[begin], i - begin); \
/* TODO: PUSH_MOVE will be better if available (or PUSH_NEW) */ \
M_GET_PUSH oplist (cont, tmp); \
/* If push move method is available, use it */ \
M_IF_METHOD(PUSH_MOVE,oplist)( \
M_GET_PUSH_MOVE oplist (cont, &tmp); \
string_init(tmp); \
, \
M_GET_PUSH oplist (cont, tmp); \
) \
begin = i + 1; \
} \
} \