Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed May 15, 2024
1 parent 399cafe commit 177dfe3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Settings/Ipc.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function __construct()
*/
public function getSlow(): bool
{
return Magic::$isIpcWorker;
return Magic::$isIpcWorker || \PHP_OS_FAMILY === 'Windows';
}
}
4 changes: 4 additions & 0 deletions src/polyfill.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
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;
Expand Down

0 comments on commit 177dfe3

Please sign in to comment.