Commit 5e16684
gitweb: make the supported snapshot formats array global
The array of supported snapshot format is used and defined (with two
different names) in two routines, one of which (format_snapshot_links)
is often called multiple times per page.
Simplify code and speed up page generation by making the array global.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 8db49a7 commit 5e16684
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
724 | 728 | | |
725 | 729 | | |
726 | 730 | | |
| |||
1647 | 1651 | | |
1648 | 1652 | | |
1649 | 1653 | | |
1650 | | - | |
1651 | | - | |
1652 | 1654 | | |
1653 | 1655 | | |
1654 | 1656 | | |
| |||
4846 | 4848 | | |
4847 | 4849 | | |
4848 | 4850 | | |
4849 | | - | |
4850 | | - | |
4851 | | - | |
4852 | 4851 | | |
4853 | | - | |
| 4852 | + | |
4854 | 4853 | | |
4855 | 4854 | | |
4856 | 4855 | | |
4857 | | - | |
| 4856 | + | |
4858 | 4857 | | |
4859 | 4858 | | |
4860 | 4859 | | |
4861 | 4860 | | |
4862 | | - | |
| 4861 | + | |
4863 | 4862 | | |
4864 | 4863 | | |
4865 | 4864 | | |
| |||
0 commit comments