Topic: lz4 and snappy compression modules for php7

github.com/kjdev/php-ext-snappy
github.com/kjdev/php-ext-lz4

hi
is it possible to build/include rpms of lz4 and snappy in php7 repo?
it provides proper and very fast compression functions: lz4_compress and snappy_compress.

thank you for your great work!!

Re: lz4 and snappy compression modules for php7

I'm used to give priority to extension registered on PECL forge.

For lz4, you can use the horde extension (php-horde-horde-lz4 which is also a wrapper above lz4 library)

I will have a look to snappy.
If you have a github account, please file a bug on https://github.com/remicollet/remirepo/issues

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

yes, i see horde package
but the problem is it has non standard function name
horde_lz4_compress

while everywhere is lz4_compress

when i install php-horde-horde-lz4, php errors with wrong function.
also it is good to have either lz4 or snappy in php
because hhvm supports both, and if using hhvm and php-fpm as a backup upstream it must have compression available.


thank you for your support

Re: lz4 and snappy compression modules for php7

Please define "everywhere" wink

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

About snappy: https://github.com/kjdev/php-ext-snappy/pull/4
Will see how upstream accept to collaborate.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

php-snappy is now available in the repo.

Tests/feedback welcome.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

awesome!!
snappy works good.

i just realized that hhvm package is not available from either facebook repo nor epel/centos as an official build for CentOS 7, official build only for Ubuntu..

there is only some DIY guide in their wiki how to build hhvm for CentOS 7, i just built one yesterday with no issues,

if you can build hhvm package for CentOS 7 and include in Remi repo?
then it will be the only repo that provides all webstack packages smile

if you need any help with that no problem im ready.

Re: lz4 and snappy compression modules for php7

> if you can build hhvm package for CentOS 7 and include in Remi repo?

Sorry, but not enough time, and I prefer to concentrate myself on PHP stack.

And IMHO, old argument about performance is gone with PHP 7.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

php-lz4 is now available in the repo.

Tests/feedback welcome.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: lz4 and snappy compression modules for php7

i really appreciate all you do,

but im running auto scaling droplets farm on digitalocean with hhvm, 1gb/1cpu
and it works just perfect.
takes very high loads.

php-fpm cannot withstand the load,

the company was running huge servers before they have moved to hhvm.
now instead of 64gb 12cpu servers only x10 1cpu 1gb droplets.

that simple.