]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Minor t_push() optimization - use unlikely()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 1 Sep 2016 05:11:46 +0000 (19:11 -1000)
committerGitLab <gitlab@git.dovecot.net>
Fri, 2 Sep 2016 07:50:29 +0000 (10:50 +0300)
src/lib/data-stack.c

index 342932df2608ec6ad80fccb8d1f6d9b8f8db5545..290d40aa3f269310fb9044ee59ffee373cde0687 100644 (file)
@@ -133,7 +133,7 @@ unsigned int t_push(const char *marker)
        frame_pos++;
        if (frame_pos == BLOCK_FRAME_COUNT) {
                /* frame block full */
-               if (data_stack_frame == 0) {
+               if (unlikely(data_stack_frame == 0)) {
                        /* kludgy, but allow this before initialization */
                        frame_pos = 0;
                        data_stack_init();