Bug 12343

Summary: Optimize map_hittest
Product: roadster Reporter: Jeff Garrett <jeff>
Component: generalAssignee: Jeff Garrett <jeff>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: ian
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jeff Garrett 2007-09-08 05:29:56 UTC
It's high in profiles.
Comment 1 Ian McIntosh 2007-09-08 09:54:40 UTC
map_hittest is used in two places:

1) when clicking, to find out what the user clicked on.

2) when moving the mouse, to show tooltips of what the mouse cursor is over (roads, POI, etc.)

It is plenty fast for the first use.

For the second use, and IF you want to keep the tooltip feature, instead of optimizing map_hittest, I suggest only showing a tooltip when the mouse has stopped moving for around 100 milliseconds.

It would be more consistent (GTK+ has a tooltip delay) and wouldn't waste CPU time like it does now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.