diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-03-08 20:55:03 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-03-08 20:55:03 -0400 |
commit | f49c9e7c333199ca762719793b6cb626fc856edf (patch) | |
tree | b874f1df8e8c904a40b0854cd8052c5a5f6f39a9 /syntax-highlighting-server.py | |
parent | 33c4460bed1488c9c313f9646514914852b45f32 (diff) | |
download | cgit-syntax-highlighting-f49c9e7c333199ca762719793b6cb626fc856edf.tar.xz cgit-syntax-highlighting-f49c9e7c333199ca762719793b6cb626fc856edf.zip |
update documentation
Diffstat (limited to 'syntax-highlighting-server.py')
-rwxr-xr-x | syntax-highlighting-server.py | 3 |
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 |