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

Reducing Memory Usage #15

Open
kiler129 opened this issue Oct 17, 2018 · 2 comments
Open

Reducing Memory Usage #15

kiler129 opened this issue Oct 17, 2018 · 2 comments

Comments

@kiler129
Copy link

This is more a question than an issue. We are running some workloads requiring bath processing of records. To speed up the process multiple workers are used.

The problem is each new worker requires 2GB of memory to load libpostal data. This seems wasteful, since the data AFAIK doesn't change. Effectively this cause memory to have multiple copies of libpostal model, while also significantly delaying startup of each of the workers.

Is there any way to share the memory containing data model between workers, or is making a simple REST api our only option?

@vlasvlasvlas
Copy link

same here!

@kiler129
Copy link
Author

We finally went with https://github.com/johnlonganecker/libpostal-rest-docker and after seeeeveral millions of records it proven solid and fast :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants