-
Notifications
You must be signed in to change notification settings - Fork 119
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
Reduce Timing Measurement Scope to Bottom 80% of Tracked Functions #996
Conversation
- Removed timing for less significant functions in TRIP_SEGMENTATION pipeline - Focused retained measurements on key contributors - Prepare for local testing to validate `create_time_filter` triggering - Will explore top 20% timing optimizations in a follow-up commit
- Removed tracking for additional functions identified as low-impact during iOS and Android local testing. - Retained tracking for key contributors to overall execution time. - Suggested broader retesting on staging, production, or different datasets to validate changes.
Follow-up: Refine Timing Measurement for Additional FunctionsSummaryPerformed additional local testing with both iOS and Android users to refine timing measurement further. Identified and removed more unneeded tracking functions. Suggest retesting on staging, production, or a different dataset to validate the changes more broadly. Changes
Context
Next Steps
|
Insights:
|
Summary
Focuses on reducing the scope of timing measurements to only the bottom 80% of tracked functions. The changes remove measurement for functions contributing less significantly to overall execution time.
Changes
Functions removed from timing measurement (bottom 80%):
TRIP_SEGMENTATION/create_dist_filter
TRIP_SEGMENTATION/create_time_filter
TRIP_SEGMENTATION/get_data_df
TRIP_SEGMENTATION/get_filters_in_df
TRIP_SEGMENTATION/get_time_range_for_segmentation
TRIP_SEGMENTATION/get_time_series
TRIP_SEGMENTATION/handle_out_of_order_points
TRIP_SEGMENTATION/segment_into_trips_dist/check_transitions_post_loop
TRIP_SEGMENTATION/segment_into_trips_dist/continue_just_ended
TRIP_SEGMENTATION/segment_into_trips_dist/get_transition_df
TRIP_SEGMENTATION/segment_into_trips_dist/mark_valid
TRIP_SEGMENTATION/segment_into_trips_dist/post_loop
TRIP_SEGMENTATION/segment_into_trips_dist/set_new_trip_start_point
Retained function timings for:
ACCURACY_FILTERING
CLEAN_RESAMPLING
CREATE_COMPOSITE_OBJECTS
CREATE_CONFIRMED_OBJECTS
EXPECTATION_POPULATION
JUMP_SMOOTHING
LABEL_INFERENCE
MODE_INFERENCE
STORE_USER_STATS
USER_INPUT_MATCH_INCOMING
TRIP_SEGMENTATION/segment_into_trips_dist/get_filtered_points_df
Context
Currently, only the
dist_filter
function was triggered in the staging dataset. I'll test locally to determine if thetime_filter
function can be triggered in additional scenarios.The focus of this PR is exclusively on functions in the bottom 80% of tracked execution times. An exploration of the top 20% will follow in a subsequent PR.
Testing Plan
time_filter
and other functions behave as expected in local and staging environments.Next Steps