jenkins-bot has submitted this change and it was merged.

Change subject: Drop support for 75 languages in SyntaxHighlighter_GeSHi
......................................................................


Drop support for 75 languages in SyntaxHighlighter_GeSHi

GeSHi supports 215 languages. The top 6 languages account for more than 50% of
usage, and the top 20 languages for more than 80%. The bottom 75 are not used
at all (or rather: usage of these language's modules was not seen in two hours'
worth of request logs.) Since each supported language gets an entry in
ResourceLoader's start-up module, it makes sense to be economical and drop
support for those languages. (T93025)

Change-Id: Idf34911407bdcd54b904e7d8f11e540ef257c1cc
---
M wmf-config/CommonSettings.php
1 file changed, 31 insertions(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index fbbcb9d..84f1231 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -572,6 +572,37 @@
 
 if ( $wmgUseGeSHi ) {
        include( $IP . 
'/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php' );
+
+       // GeSHi supports 215 languages. The top 20 languages account for more 
than
+       // 80% of usage. The bottom 75 are not used at all. Since each supported
+       // language gets an entry in ResourceLoader's start-up module, it makes
+       // sense to be economical and drop support for those languages. (T93025)
+       $wgGeSHiSupportedLanguages = array_intersect(
+               $wgGeSHiSupportedLanguages,
+               array(
+                       "c", "cpp", "bash", "html4strict", "text", "java", 
"latex",
+                       "javascript", "python", "xml", "csharp", "php", "css", 
"asm", "sql",
+                       "pascal", "matlab", "html5", "haskell", "vb", "lisp", 
"ruby", "ada",
+                       "oracle11", "dos", "rsplus", "fortran", "d", "bnf", 
"ocaml", "pcre",
+                       "perl", "vhdl", "actionscript", "lua", "bibtex", "go", 
"bf", "cobol",
+                       "ini", "delphi", "arm", "scheme", "objc", "prolog", 
"actionscript3",
+                       "mysql", "qbasic", "asp", "algol68", "groovy", 
"erlang", "abap",
+                       "email", "powershell", "ecmascript", "glsl", "sas", 
"apache", "yaml",
+                       "java5", "vbnet", "reg", "cfm", "fsharp", "scala", 
"applescript",
+                       "gwbasic", "clojure", "pli", "robots", "tsql", "whois", 
"freebasic",
+                       "verilog", "llvm", "visualfoxpro", "sparql", "tcl", 
"plsql",
+                       "coffeescript", "scilab", "dot", "autoit", "boo", 
"mirc", "lolcode",
+                       "gnuplot", "eiffel", "j", "teraterm", "oorexx", "diff", 
"smalltalk",
+                       "cmake", "avisynth", "perl6", "xpp", "typoscript", 
"basic4gl", "make",
+                       "awk", "e", "gml", "jquery", "zxbasic", 
"systemverilog", "6502acme",
+                       "properties", "oracle8", "q", "purebasic", "pic16", 
"ldif", "rexx",
+                       "unicon", "urbi", "modula3", "mpasm", "locobasic", 
"progress",
+                       "visualprolog", "vala", "octave", "winbatch", "oz", 
"autohotkey",
+                       "cadlisp", "euphoria", "pycon", "oobas", "povray", 
"thinbasic",
+                       "68000devpac", "mmix", "modula2", "cil", "mxml", "io", 
"blitzbasic",
+                       "parigp", "oberon2",
+               )
+       );
 }
 
 if ( $wmgUseDoubleWiki ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/197449
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf34911407bdcd54b904e7d8f11e540ef257c1cc
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to