Skip to content
New issue

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

BeSimple\SoapCommon\Mime\Parser is painfully slow #2

Open
tuscanicz opened this issue Apr 4, 2017 · 1 comment
Open

BeSimple\SoapCommon\Mime\Parser is painfully slow #2

tuscanicz opened this issue Apr 4, 2017 · 1 comment

Comments

@tuscanicz
Copy link
Owner

Adding extra 1 second to the SWA request handling on localhost (MacOS X with PHP 7.x installed locally). Using Docker, situation goes a bit worse.

@tuscanicz tuscanicz self-assigned this Apr 4, 2017
@tuscanicz
Copy link
Owner Author

The original BeSimple/Soap is also slow and present a wrong algorithm.

I suggest to rewrite the message parser completely. Instead of exploding the response/request message by line endings, I would parse it by the mime boundaries first, then the part headers by empty space. The part headers must be parsed by iconv_mime_decode while the content will be untouched. Simple.

@tuscanicz tuscanicz removed their assignment Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant