summary refs log tree commit diff
path: root/bin/man1/fbatt.1
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 /bin/man1/fbatt.1
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 'bin/man1/fbatt.1')
0 files changed, 0 insertions, 0 deletions
0111-filter.sh?h=1.3.0&id=f759cc0f08c195940de05d5394f7b1ad4d44365e&follow=1'>tests: only do lua tests if lua is compiled-inJason A. Donenfeld 2014-01-20cgit: add --version argument for printing infoJason A. Donenfeld 2014-01-19cache: use sendfile() instead of a pair of read() + write()Sebastian Andrzej Siewior 2014-01-19README: document pkg-config for luajitJason A. Donenfeld 2014-01-17makefile: bump versionJason A. Donenfeld 2014-01-17mailmap: source before lighttpdJason A. Donenfeld 2014-01-17ui-shared: do not allow negative minutesJason A. Donenfeld 2014-01-17auth: document tweakables in lua scriptJason A. Donenfeld 2014-01-17repolist: make owner clickable to searchJason A. Donenfeld 2014-01-17ui-shared: move about tab all the way to the leftJason A. Donenfeld 2014-01-17filter: don't forget to reap the auth filterJason A. Donenfeld 2014-01-17cgit.c: free tmp variableJason A. Donenfeld 2014-01-17Switch to exclusively using global ctxLukas Fleischer 2014-01-16auth: have cgit calculate login addressJason A. Donenfeld 2014-01-16auth: lua string comparisons are time invariantJason A. Donenfeld 2014-01-16authentication: use hidden form instead of refererJason A. Donenfeld 2014-01-16auth: add basic authentication filter frameworkJason A. Donenfeld 2014-01-16t0111: Additions and fixesLukas Fleischer 2014-01-16parsing.c: Remove leading space from committerLukas Fleischer