This closes bug #2184326 on SourceForge. Some people may not have access to
their git repository, so we save the cache to the output directory instead
(which must always have write access anyway).
This sorts tables on the authors and files pages.
Slightly modifies the sortable.js to ignore additional info in
parentheses after a number.
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
This adds the sortable table JavaScript from
http://yoast.com/articles/sortable-table/ (version 1.5.7) and some
helper images from the same site.
[hoxu@users.sf.net: The license linked from sortable.js and the one linked from
yoast.com (to opensource.org) differ a bit (the middle sentence about
copyright/permissions notice is not in the first), so I'm including a verbatim
copy-paste from http://www.kryogenix.org/code/browser/licence.html here:
-----
Copyright (c) 1997-date Stuart Langridge
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----
With the addition that Joost De Valk has improved the script.]
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Some data from linux-2.6 and wine repositories:
linux-2.6:
Execution time 8574.73483 secs, 8539.54468 secs (99.59 %) in external commands)
Execution time 532.61431 secs, 509.50925 secs (95.66 %) in external commands)
-> time reduced to ~6%
wine:
Execution time 1538.62315 secs, 1512.65805 secs (98.31 %) in external commands)
Execution time 341.02903 secs, 331.91908 secs (97.33 %) in external commands)
-> time reduced to ~22%
And this is just one particular function that is cached.
The downside is more used diskspace, the cache for linux-2.6 for example
is 2.9 MiB at the moment.
As stated in doc/README, contributions from now on should be under
"GPLv2 or older" to allow upgrading to newer versions of GPL
(if I think they are sensible :-)
This is essentially the same as "GPLv2 or older approved by the author."
Feedback is welcome.
On unix, when "shell = False" (default), the args must be a list of
args. While on Windows, filling args with a list causes problems. As a
trade-off, set the this flag and using a string as the command, although
this might sacrifice some performance, but that's not the main concern
in this script.
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>