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

Enable caching for distance calculation #413

Open
henrymartin1 opened this issue May 23, 2022 · 0 comments
Open

Enable caching for distance calculation #413

henrymartin1 opened this issue May 23, 2022 · 0 comments

Comments

@henrymartin1
Copy link
Member

Calculating distances on a large dataset is an expensive operation, especially if we need to use the function calculate_haversine_length. This function is used by several functions (calculate_modal_split, predict_transport_mode) and additionally a user might want to have access to the length as well.

It would be great if we could implement a way to cache the calculation e.g., in a column of the input dataframe. I am not sure yet what would be a good concept that is still easy to use.
An idea would be to return the column if calculated as optional output if caching is activated.

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