discourse/app
Sam Saffron 28292d2759
PERF: avoid shelling to get hostname aggressively
Previously we had many places in the app that called `hostname` to get
hostname of a server. This commit replaces the pattern in 2 ways

1. We cache the result in `Discourse.os_hostname` so it is only ever called once

2. We prefer to use Socket.gethostname which avoids making a shell command

This improves performance as we are not spawning hostname processes throughout
the app lifetime
2020-02-18 15:13:19 +11:00
..
assets Increase topic breakpoint width to avoid small range where layout wraps 2020-02-17 16:04:24 -05:00
controllers FIX: If a group is unmentionable, don't render it as mentionable 2020-02-14 12:29:56 -05:00
helpers FIX: Don't use theme colors for digest unsubscribe footer links 2020-02-11 15:52:38 -05:00
jobs PERF: avoid shelling to get hostname aggressively 2020-02-18 15:13:19 +11:00
mailers FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
models PERF: avoid shelling to get hostname aggressively 2020-02-18 15:13:19 +11:00
serializers FIX: tag info misleading message saying it's not restricted 2020-02-05 15:23:39 -05:00
services FIX: when unread reply notification exists don't create new (#8921) 2020-02-14 16:41:42 +11:00
views FIX: Don't use theme colors for digest unsubscribe footer links 2020-02-11 15:52:38 -05:00