We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过排查发现这个方法会导致CPU偏高,如果fread调整为1M和10M估计有3-4倍的差异。但1M可能出现大日志写不全的问题。
File: aliyun-log-php-sdk/blob/master/Aliyun/Log/Util.php
public static function toBytes($logGroup) { $mem = fopen("php://memory", "rwb"); $logGroup->write($mem); rewind($mem); $bytes=""; if(feof($mem)===false){ $bytes = fread($mem, 10*1024*1024); } fclose($mem); return $bytes;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
通过排查发现这个方法会导致CPU偏高,如果fread调整为1M和10M估计有3-4倍的差异。但1M可能出现大日志写不全的问题。
File: aliyun-log-php-sdk/blob/master/Aliyun/Log/Util.php
The text was updated successfully, but these errors were encountered: