From: Jean Privat Date: Tue, 3 Mar 2015 15:05:33 +0000 (+0700) Subject: Merge: compiler: fast path is the hot path in once and literal strings X-Git-Tag: v0.7.3~42 X-Git-Url: http://nitlanguage.org Merge: compiler: fast path is the hot path in once and literal strings `once` structure and literal strings are implemented with a guard so that onced-expression and literal strings are evaluated/created once then stored in a static variable. This patch just informs GCC that the fast path (get the saved value) it the frequent path. It's up to GCC to do something useful with this information. It seems it does since number for nitc/nitc/nitc are before: 0m7.324s after: 0m7.156s (-2.3%) Pull-Request: #1183 Reviewed-by: Lucas Bajolet Reviewed-by: Alexis Laferrière --- 6e549a2629c75122184fe861b8214922ddec2739