simon-svn: agedu: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Nov 8 08:24:38 GMT 2008


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       8292
Date:           2008-11-08 08:24:38 +0000 (Sat, 08 Nov 2008)

Log message (6 lines):
Optimisations in HTML generation: do not keep calling get_indices()
when we already know the answers, and move all the
round_and_format_age() calls to the top of html_query() instead of
duplicating them all over the rest of the file. Saves about 60% time
on Linux, and a staggering factor of 25 on my Mac (on which,
apparently, mktime() is ludicrously slow).

Modified files:
U   agedu/html.c

Links:
http://svn.tartarus.org/sgt/?rev=8292&view=rev
http://svn.tartarus.org/sgt/agedu/html.c?rev=8292&r1=8291&r2=8292



More information about the tartarus-commits mailing list