Skip to content

Commit

Permalink
docs: Swoole backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Mar 16, 2024
1 parent cb1ee71 commit 251a1b4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/backends/swoole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<span style="float:right;"><a href="https://github.com/RubixML/ML/blob/master/src/Backends/Swoole.php">[source]</a></span>

# Swoole
[Swoole](https://swoole.com)/[OpenSwoole](https://openswoole.com/) is an async PHP extension that also supports multiprocessing.

!!! tip
Swoole backend makes use of [Igbinary](https://www.php.net/manual/en/intro.igbinary.php) serializer. If you need to
optimize the memory usage (or getting out-of-memory errors) consider installing [Igbinary](https://www.php.net/manual/en/intro.igbinary.php).

## Example

No parameters are required. It's a drop-in replacement for the [Serial](backends/serial.md) backend.

```php
use Rubix\ML\Backends\Swoole;

$backend = new Swoole();
```

0 comments on commit 251a1b4

Please sign in to comment.