* Perform builds in parallel.
* Turn off sqlite's synchronous mode because fsync() performance *really* sucks on ext3 (it syncs the entire filesystem). See https://bugzilla.mozilla.org/show_bug.cgi?id=421482
This commit is contained in:
@ -7,6 +7,8 @@ use HydraFrontend::Schema;
|
||||
|
||||
my $db = HydraFrontend::Schema->connect("dbi:SQLite:dbname=hydra.sqlite", "", "", {});
|
||||
|
||||
$db->storage->dbh->do("PRAGMA synchronous = OFF;");
|
||||
|
||||
|
||||
sub isValidPath {
|
||||
my $path = shift;
|
||||
@ -250,4 +252,8 @@ sub checkJobs {
|
||||
}
|
||||
|
||||
|
||||
checkJobs;
|
||||
while (1) {
|
||||
checkJobs;
|
||||
print "sleeping...\n";
|
||||
sleep 10;
|
||||
}
|
||||
|
Reference in New Issue
Block a user