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

perf(autoware_detected_object_validation): reduce lanelet_filter processing time (#8240) #1433

Merged
merged 1 commit into from
Jul 30, 2024

Commits on Jul 30, 2024

  1. perf(autoware_detected_object_validation): reduce lanelet_filter proc…

    …essing time (autowarefoundation#8240)
    
    * add local r-tree for fast searching
    
    Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
    
    change to _func__
    
    add more debug
    
    use local rtree
    
    fix
    
    tmp update
    
    fix bug
    
    clean unused
    
    clean up
    
    Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
    
    * clean up
    
    Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
    
    * style(pre-commit): autofix
    
    * chore: Optimize object filtering and improve performance
    
    The code changes in `lanelet_filter.cpp` optimize the object filtering process by using the `empty()` function instead of checking the size of the `transformed_objects.objects` vector. This change improves performance and simplifies the code logic.
    
    Refactor the code to use `empty()` instead of `size()` for checking if the `transformed_objects.objects` vector is empty. This change improves readability and performance.
    
    Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
    
    ---------
    
    Signed-off-by: a-maumau <maumaumaumaumaumaumaumaumaumau@gmail.com>
    Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Taekjin LEE <taekjin.lee@tier4.jp>
    technolojin and pre-commit-ci[bot] committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    7bdfaf1 View commit details
    Browse the repository at this point in the history