-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Hi, I couldn't see a discussions tab so raised as an issue. Firstly thank you for this package it is a lifesaver!
I have a large suite of 6858 phpunit integration tests. I am running the suite twice in CI jobs, one job with the mcrypt extension and the other job with this polyfill. The suite passes fine in both cases but I am seeing an unexpected performance increase for the suite with polyfill. Both jobs are run using PHP 8.1.
- with mcrypt compat polyfill: Time: 06:45.218, Memory: 1.22 GB
- with mcrypt extension: Time: 10:47.279, Memory: 2.78 GB
- a colleague's branch that uses extension (control): Time: 11:15.692, Memory: 2.74 GB
Could this be due to better garbage collection with the pure PHP implementation vs the very old c extension?
For completeness but I don't think it's relevant, I have a decorator class that wraps the mcrypt_
functions that I use, calling the phpseclib_
function directly according to an environment variable.
Metadata
Metadata
Assignees
Labels
No labels