Merge pull request #14591 from annando/animated-gif

Improve the speed for blurhash generation
pull/14592/head
Hypolite Petovan 2024-12-09 07:08:24 -05:00 zatwierdzone przez GitHub
commit 9a8554e40a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -770,7 +770,7 @@ class Image
*/
public function getBlurHash(): string
{
$image = New Image($this->asString(), $this->getType(), $this->filename, false);
$image = clone($this);
if (empty($image) || !$this->isValid()) {
return '';
}

Wyświetl plik

@ -295,7 +295,7 @@ class Jetstream
break;
}
if (microtime(true) - $timestamp > 2) {
$this->logger->notice('Commit processed', ['duration' => round(microtime(true) - $timestamp, 3), 'time' => date(DateTimeFormat::ATOM, $data->time_us / 1000000), 'did' => $data->did, 'operation' => $data->commit->operation, 'collection' => $data->commit->collection]);
$this->logger->notice('Commit processed', ['duration' => round(microtime(true) - $timestamp, 3), 'drift' => $drift, 'capped' => $this->capped, 'time' => date(DateTimeFormat::ATOM, $data->time_us / 1000000), 'did' => $data->did, 'operation' => $data->commit->operation, 'collection' => $data->commit->collection]);
}
}