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

Call pazusoba.so with cdll #1

Closed
5 tasks done
HenryQuan opened this issue Jul 10, 2021 · 1 comment
Closed
5 tasks done

Call pazusoba.so with cdll #1

HenryQuan opened this issue Jul 10, 2021 · 1 comment
Assignees

Comments

@HenryQuan
Copy link
Member

HenryQuan commented Jul 10, 2021

Currently, python is using the binary via command line and pazusoba writes the final route to the disk. This works very well but it isn't ideal because file I/O takes time. If python calls pazusoba via cdll, the data can be sent to python directly and python can simply read it and ask pazusoba to free the list. pazusoba will be compiled to a shared library as pazusoba.so. However, this is not possible unless pazusoba supports it.

WIP

  • Make pazusoba.so with cmake
  • Add a python wrapper
  • Pass data to the shared library
  • Receive the route from the library
  • Update cmake so that the output is libpazusoba.so on all platforms

All good for now. However, not yet finalised but it is working.

@HenryQuan HenryQuan self-assigned this Jul 10, 2021
@HenryQuan
Copy link
Member Author

This is done in dev.

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

1 participant