-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ndr/misc performance #123
Ndr/misc performance #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some sensible improvements.
per our discussion, i would like to be sure we avoid issues with floating point accuracy, as talked about here with using f32. in particular, if all geometries are represented in f32, does it mess with our route linestrings?
and, just a little nudge, why not finish whatcha started with the road class mapping? i think it's close?
@@ -18,7 +24,7 @@ impl FrontierModelService for RoadClassFrontierService { | |||
) -> Result<Arc<dyn FrontierModel>, FrontierModelError> { | |||
let service: Arc<RoadClassFrontierService> = Arc::new(self.clone()); | |||
let road_classes = query | |||
.get_config_serde_optional::<HashSet<String>>(&"road_classes", &"") | |||
.get_config_serde_optional::<HashSet<u8>>(&"road_classes", &"") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to implement the mapping action, when road_class_mapping is not None, do we replace this logic with the mapping logic, and then set "road classes" from the result of the mapping? seems like just a few more lines to add to the service here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, i'm convinced we haven't nuked the world. great catches here!
@robfitzgerald - flagging this for another quick look. I added the ability include a mapping from string road class to integer road class so users can spec a string road class at query time. This might conflict with some recent updates you're making to the input plugins. |
hey, rolling in the road class changes breaks the configurations on the tomtom repo:
those configs all inject road classes as strings, like this:
but it works if you un-quote those numbers, so just a heads up until once of us updates the configs. |
Oops, yeah good catch, let me update those |
Tacks on a couple more performance upgrades: