-
Notifications
You must be signed in to change notification settings - Fork 6
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
Inline escape() method to improve performance #34
Conversation
Co-authored-by: Kamil Tekiela <[email protected]>
Hi @staabm ! Thanks for the PRs! ❤️ I'll try to find time to go through them in coming weeks (I just got back from holiday). |
hey 👋! Take your time.
Not sure what you mean. Feel free to ping me if I can help you |
Aah, sorry. I meant this tool which I found via your profile: https://github.com/Smile-SA/gdpr-dump |
I came to your project here via said library which I started using a few weeks ago :-) My motivation for improving performance here is making the gdpr lib faster :-) |
committed another small micro optimization, which also improves readability a bit |
dumping a InnoDB table containing 1,4 GiB of data ...
before this change
after this change
the improvement works, because the
escape
method is called for every column in every row, so the method call overhead is visiblePHP Version
PHP 8.1.27
Operating System
ubuntu 22 lts