Make tables valid markdown

This commit is contained in:
James Gregory 2013-12-31 07:30:12 +11:00
commit 2091516544
13 changed files with 156 additions and 1002 deletions

View file

@ -33,85 +33,18 @@ gains out of going to a Ping-Pong arrangement so that I didn't have to
copy the new cellmap back to **current\_map** after calculating the next
generation.
* * * * *
| | Listing 17.1 | Listing 17.3 | Listing 17.4 |
|--------------------------|--------------|--------------|--------------|
| **Total execution time** | 340 secs | 94 secs | 45 secs |
| **cell\_state()** | 275 | 21 | — |
| **next\_generation()** | 60 | 14 | 40 |
| **count\_neighbors()** | — | 54 | — |
| **draw\_pixel()** | 2 | 2 | 2 |
| **set\_cell()** | <1 | <1 | <1 |
| **clear\_cell()** | <1 | <1 | <1 |
| **copy\_cells()** | <1 | <1 | <1 |
Listing 17.1
Listing 17.3
Listing 17.4
* * * * *
**Total execution time**
340 secs
94 secs
45 secs
**cell\_state()**
275
21
—
**next\_generation()**
60
14
40
**count\_neighbors()**
—
54
—
**draw\_pixel()**
2
2
2
**set\_cell()**
\<1
\<1
\<1
**clear\_cell()**
\<1
\<1
\<1
**copy\_cells()**
\<1
\<1
\<1
* * * * *
Table 17.1 Execution times for the game of life.
* * * * *
Table: Table 17.1 Execution times for the game of life.
I was wrong. Wrong, wrong, wrong. (But at least I was smart enough to
use a profiler before actually writing any new code.) Table 17.1 shows