From 58a688d5e01663b9fe726925287e4853429ca2cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 29 Nov 2018 17:53:28 +0100 Subject: [PATCH] Disable Unicode support in scssphp see https://github.com/WoltLab/WCF/pull/2736#issuecomment-416084079 --- .../install/files/lib/system/style/StyleCompiler.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 67151359fd..fba86922e9 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -52,6 +52,9 @@ class StyleCompiler extends SingletonFactory { protected function init() { require_once(WCF_DIR.'lib/system/style/scssphp/scss.inc.php'); $this->compiler = new Compiler(); + // Disable Unicode support because of its horrible performance (7x slowdown) + // https://github.com/WoltLab/WCF/pull/2736#issuecomment-416084079 + $this->compiler->setEncoding('iso8859-1'); $this->compiler->setImportPaths([WCF_DIR]); } -- 2.20.1