summaryrefslogtreecommitdiff
path: root/syntax-highlighting-server.py
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-03-08 20:55:03 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-03-08 20:55:03 -0400
commitf49c9e7c333199ca762719793b6cb626fc856edf (patch)
treeb874f1df8e8c904a40b0854cd8052c5a5f6f39a9 /syntax-highlighting-server.py
parent33c4460bed1488c9c313f9646514914852b45f32 (diff)
downloadcgit-syntax-highlighting-f49c9e7c333199ca762719793b6cb626fc856edf.tar.xz
cgit-syntax-highlighting-f49c9e7c333199ca762719793b6cb626fc856edf.zip
update documentation
Diffstat (limited to 'syntax-highlighting-server.py')
-rwxr-xr-xsyntax-highlighting-server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/syntax-highlighting-server.py b/syntax-highlighting-server.py
index dabd631..05140a7 100755
--- a/syntax-highlighting-server.py
+++ b/syntax-highlighting-server.py
@@ -117,6 +117,9 @@ def main():
.format(args.host, args.port))
try:
+ # preload stuff to avoid first-request latency (every request for
+ # forking) and post-fork memory usage
+
# preload lexers
guess_lexer('')
# preload formatter