-
Notifications
You must be signed in to change notification settings - Fork 23
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
Warm up time #20
Comments
I second this. This is an absolute show-stopper for me. This extension makes every single call to PHP on the command line take several seconds, when normally it takes milliseconds. Even running Did I miss something? I thought I installed both libpostal and php-postal exactly as it says. And they work on my machine, but are just so doggedly slow. What can be done about this? |
This may not work in your environment, but we just made a small network service using https://github.com/openvenues/gopostal and call it when we need to parse a location. |
I ended up doing the exact same thing. Wrote a c++ program exposing libpostal over sockets. |
Chiming in to say I'm seeing the same thing, even when not directly using Postal functionality. Enabled:
Disabled:
4 seconds to run |
This is a Docker container that provides a REST API to libpostal: https://github.com/johnlonganecker/libpostal-rest-docker Otherwise, maybe a PHP socket server could work, similar to what @tholden92 says he did with C++. |
Any update on this, on my system its taking over 20seconds to try and run a php script when this extension is enabled |
Hello
Is it possible to use this php extension in such a way that you can avoid the warm up time when doing address_parse() ?
I initially thought that it would work to run the parsing in a while loop accepting addresses to parse, and only have the warmup happen initially, but seems I was wrong?
The text was updated successfully, but these errors were encountered: