Select Git revision
locallib.php
-
Tim Hunt authored
This is a bit quick and dirty. The use of static here is dangerous. E.g. this will break if one script tries to process things where some is in one language and some is in another. However, perf testing a quiz with 7 STACK questions, that caused 685 calls to stack_maxima_latex_tidy which caused ~7000 calls to Moodle's get_string, which too about 1.5s of the page load time. So, in the common case where everything is in one language, this is a worthwhile performance win. If it causes bugs for some people, we can fix that later.
Tim Hunt authoredThis is a bit quick and dirty. The use of static here is dangerous. E.g. this will break if one script tries to process things where some is in one language and some is in another. However, perf testing a quiz with 7 STACK questions, that caused 685 calls to stack_maxima_latex_tidy which caused ~7000 calls to Moodle's get_string, which too about 1.5s of the page load time. So, in the common case where everything is in one language, this is a worthwhile performance win. If it causes bugs for some people, we can fix that later.
FORMULA 301 B
name: mysql
os: RedHat, CentOS, Debian, Ubuntu, Suse, Gentoo, FreeBSD
os_family: RedHat, Debian, Suse, Gentoo, FreeBSD
version: 0.54.2
release: 1
minimum_version: 2015.8
summary: Formula for installing MySQL
description: Formula for installing MySQL database client and/or server
top_level_dir: mysql