Skip to content

Resolve "Performance optimization in knowledge store"

boyanh requested to merge 12-performance-optimization into master

Closes #12 (closed)

Optimizations:

  1. Cached get_position(), traci API now used once per second per vehicle
  2. Optimized euclidean distance computation (cached dot-producted position as well)
  3. Fixed stupid mistake of searching through array instead through dictionary keys
  4. Small touches here and there (e.g. place faster computing statement in the front of an and operator)

Performance is quite better now, profiling results say get_position() and euclidean distance computation are our bottlenecks, so feel free to suggest how to compute message relevance less oftenly

Edited by boyanh

Merge request reports

Loading