1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 19:24:42 +01:00

Add warning

This commit is contained in:
Daniil Gentili 2024-05-15 20:49:02 +02:00
parent 399cafe763
commit 177dfe39e8
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,6 @@ final class Ipc extends SettingsAbstract
*/
public function getSlow(): bool
{
return Magic::$isIpcWorker;
return Magic::$isIpcWorker || \PHP_OS_FAMILY === 'Windows';
}
}

View File

@ -6,6 +6,10 @@ if (class_exists('\\danog\\MadelineProto\\Db\\NullCache\\MysqlArray')) {
return;
}
if (\PHP_OS_FAMILY === 'Windows') {
echo "WARNING: MadelineProto runs around 10x slower on windows due to OS and PHP limitations. Make sure to deploy MadelineProto in production only on Linux or Mac OS machines for maximum performance.".PHP_EOL;
}
use danog\AsyncOrm\Internal\Containers\CacheContainer;
use danog\AsyncOrm\Internal\Driver\MysqlArray;
use danog\AsyncOrm\Internal\Driver\PostgresArray;