summary refs log tree commit diff
path: root/www/git.causal.agency/cgit/ui-shared.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-01 13:03:08 +0000
committerJune McEnroe <june@causal.agency>2021-01-17 20:03:45 +0000
commit068a70c19abf2a4507d7486dd371f9f79189bfd6 (patch)
treebe98840d460fdbd66a1f6c27fe856600a8578ace /www/git.causal.agency/cgit/ui-shared.h
parentRemove redundant title on repo anchors (diff)
downloadsrc-068a70c19abf2a4507d7486dd371f9f79189bfd6.tar.gz
src-068a70c19abf2a4507d7486dd371f9f79189bfd6.zip
Use buffered stdio
Our generation of HTML triggers many small write(2) syscalls
which is inefficient.

Time output on a horrible query against my git.git mirror
shows significant performance improvement:

QUERY_STRING='id=2b93bfac0f5bcabbf60f174f4e7bfa9e318e64d5&id2=d6da71a9d16b8cf27f9d8f90692d3625c849cbc8'
PATH_INFO=/mirrors/git.git/diff
export QUERY_STRING PATH_INFO
time ./cgit >/dev/null

Before:
real    0m1.585s
user    0m0.904s
sys     0m0.658s

After:
real    0m0.750s
user    0m0.666s
sys     0m0.076s
Diffstat (limited to 'www/git.causal.agency/cgit/ui-shared.h')
0 files changed, 0 insertions, 0 deletions
title='2018-08-03 19:17:29 -0400'>2018-08-03Handle ACTIONsJune McEnroe 2018-08-03Use more octal char literalsJune McEnroe 2018-08-03Send a WHO in response to NAMES to get usernamesJune McEnroe 2018-08-03Colorize nicks and channelsJune McEnroe 2018-08-03Add support for mIRC colorsJune McEnroe 2018-08-03Handle bold, italic, underlineJune McEnroe 2018-08-03Add prift function for "prefix shift"June McEnroe 2018-08-03Link with -lcurseswJune McEnroe 2018-08-02Use libtls "compat" ciphersJune McEnroe 2018-08-02Add UI and handle some kinds of server messagesJune McEnroe 2018-08-02Add chroot.tar targetJune McEnroe