Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F29003131
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
awight
May 10 2019, 11:58 AM
2019-05-10 11:58:38 (UTC+0)
Size
937 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
diff --git a/Wikidiff2.h b/Wikidiff2.h
index 805e610..c32f76d 100644
--- a/Wikidiff2.h
+++ b/Wikidiff2.h
@@ -101,6 +101,7 @@ inline bool Wikidiff2::AllowPrintMovedLineDiff::operator () (StringDiff & linedi
break;
}
}
+ printf("chunk with %d adds and %d deletes\n", adds, deletes);
detectMovedLinesValid = true;
}
return detectMovedLines;
diff --git a/benchmarks/bench.php b/benchmarks/bench.php
index 0aac803..338abde 100644
--- a/benchmarks/bench.php
+++ b/benchmarks/bench.php
@@ -1,7 +1,7 @@
<?php
// Benchmark script for Wikidiff2. It times diffing of 50 changes sampled
// from Special:RecentChanges of several Wikipedias (en, hi, ru, th, and zh).
-$num_loops = 50;
+$num_loops = 1;
$data = json_decode( gzdecode( file_get_contents( __DIR__ . '/revs.json.gz' ) ), true );
echo "loops: " . $num_loops . "\n";
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7434880
Default Alt Text
raw.txt (937 B)
Attached To
Mode
P8510 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment