aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbaggy <js5@sanger.ac.uk>2021-04-28 14:00:25 +0100
committerdrbaggy <js5@sanger.ac.uk>2021-04-28 14:00:25 +0100
commitc51dcf6466eb85ed50fafb27a3986ba242b3341b (patch)
tree3e131b32f4922e87dfc7c7188483b41940b47b73
parent22fb48cb473b6ae376b6ed91431732ea5639ac4f (diff)
parent9d6496ca31c312c6010a77493ff156660f318111 (diff)
downloadperlweeklychallenge-club-c51dcf6466eb85ed50fafb27a3986ba242b3341b.tar.gz
perlweeklychallenge-club-c51dcf6466eb85ed50fafb27a3986ba242b3341b.tar.bz2
perlweeklychallenge-club-c51dcf6466eb85ed50fafb27a3986ba242b3341b.zip
Merge branch 'master' of github.com:drbaggy/perlweeklychallenge-club
-rw-r--r--.vscode/settings.json5
-rw-r--r--challenge-110/james-smith/README.md28
2 files changed, 19 insertions, 14 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000000..8bab9cab1f
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,5 @@
+{
+ "editor.rulers": [
+ 72,80,120,132
+ ]
+} \ No newline at end of file
diff --git a/challenge-110/james-smith/README.md b/challenge-110/james-smith/README.md
index 22b9d2b788..f39904c08a 100644
--- a/challenge-110/james-smith/README.md
+++ b/challenge-110/james-smith/README.md
@@ -191,7 +191,7 @@ sub transpose_seek {
## added to end
$_->[0]+=$BYTES;
}
- push @line, $_->[2] =~ s{^([^,\r\n]+)[,\r\n]*}{};
+ push @line, @[$_->[2] =~ s{^([^,\r\n]+)[,\r\n]*}{}];
}
say {$ofh} join q(,), @line;
}
@@ -286,19 +286,19 @@ We list these in order of "memory consumption"...
| Method/size | Time (s) | Kbytes | resident | shared |
| ----------- | --------: | --------: | --------: | -----: |
-| Seek small | 0.000 | 16,016 | 7,836 | 5,228 |
-| Regex small | 0.000 | 16,016 | 7,836 | 5,228 |
-| Split small | 0.000 | 16,016 | 7,836 | 5,228 |
-| Seek 1000 | 1.346 | 17,388 | 9,320 | 5,228 |
-| Seek 2000 | 5.841 | 18,848 | 10,636 | 5,228 |
-| Seek 5000 | 54.208 | 23,044 | 14,972 | 5,228 |
-| Regex 1000 | 1.293 | 25,492 | 17,288 | 5,228 |
-| Seek 30000 | 3,003.220 | 57,312 | 43,948 | 2,720 |
-| Regex 2000 | 9.040 | 63,896 | 51,376 | 3,140 |
-| Split 1000 | 0.934 | 105,784 | 93,100 | 3,204 |
-| Regex 5000 | 130.411 | 260,432 | 248,016 | 3,204 |
-| Split 2000 | 6.780 | 362,028 | 349,388 | 3,204 |
-| Split 5000 | 527.614 | 2,153,576 | 1,423,468 | 2,764 |
+| Seek small | 0.000 | 16,024 | 7,836 | 5,228 |
+| Regex small | 0.000 | 16,024 | 7,836 | 5,228 |
+| Split small | 0.000 | 16,024 | 7,836 | 5,228 |
+| Seek 1000 | 1.277 | 17,196 | 9,320 | 5,228 |
+| Seek 2000 | 5.132 | 18,612 | 10,636 | 5,228 |
+| Seek 5000 | 39.498 | 22,308 | 14,208 | 5,228 |
+| Regex 1000 | 1.181 | 24,868 | 17,288 | 5,228 |
+| Seek 30000 | 2,537.705 | 53,364 | 43,948 | 2,720 |
+| Regex 2000 | 10.596 | 58,160 | 51,376 | 3,140 |
+| Split 1000 | 1.054 | 103,620 | 93,100 | 3,204 |
+| Regex 5000 | 128.589 | 258,056 | 248,016 | 3,204 |
+| Split 2000 | 4.490 | 360,036 | 349,388 | 3,204 |
+| Split 5000 | 598.668 | 2,151,664 | 1,423,468 | 2,764 |
The size is the number of rows/columns - so the "1000" file has 1000 rows and 1000 columns (+row/column labels).