Skip to content

Commit 012f2eb

Browse files
committed
[web] remove get_point_id-timing, becasue it is fast enough
1 parent 87b6bb0 commit 012f2eb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

web/src/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,12 @@ fn query(request: web::Json<Query>, dijkstra: web::Data<Graph>) -> web::Json<Res
6464
// println!("Start: {},{}", start.latitude, start.longitude);
6565
// println!("End: {},{}", end.latitude, end.longitude);
6666
// println!("use_car: {}, by_distance: {}", use_car, by_distance);
67-
let timing = Instant::now();
6867

6968
// search for clicked points
7069
let start_id: usize = dijkstra.get_point_id(start.latitude, start.longitude);
7170
let end_id: usize = dijkstra.get_point_id(end.latitude, end.longitude);
7271

73-
println!("### duration for get_point_id(): {:?}", timing.elapsed());
74-
7572
let timing = Instant::now();
76-
7773
let tmp = dijkstra.find_path(start_id, end_id, use_car, by_distance);
7874
println!("### duration for find_path(): {:?}", timing.elapsed());
7975

0 commit comments

Comments
 (0)