After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748328 - W32: GDK backend does some unnecessary hashmap lookups
W32: GDK backend does some unnecessary hashmap lookups
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Win32
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-22 19:32 UTC by LRN
Modified: 2018-04-15 00:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
W32: Minor mouse message processing optimization (5.30 KB, patch)
2015-04-22 19:32 UTC, LRN
none Details | Review

Description LRN 2015-04-22 19:32:36 UTC
Some of them are completely unnecessary (objects are already available).
Others can be sometimes skipped by using heuristics.
Comment 1 LRN 2015-04-22 19:32:42 UTC
Created attachment 302181 [details] [review]
W32: Minor mouse message processing optimization

* Don't call gdk_display_get_device_manager() and
  _gdk_display_get_last_device_grab(), we already have device_manager_win32
  and pointer_grab
* Give the window we already found from msg->hwnd to the window finder,
  don't perform another lookup if hwnd is the same
Comment 2 Ignacio Casal Quinteiro (nacho) 2015-04-23 06:44:32 UTC
Review of attachment 302181 [details] [review]:

First thing. From reading the commit message this should be split in 2 commits. Can you do that?
Comment 3 LRN 2015-04-23 09:19:40 UTC
(In reply to Ignacio Casal Quinteiro (nacho) from comment #2)
> Review of attachment 302181 [details] [review] [review]:
> 
> First thing. From reading the commit message this should be split in 2
> commits. Can you do that?

No. They modify the same function in a similar way (give it existing object to reduce the number of lookups).
Comment 4 LRN 2015-04-28 19:51:41 UTC
attachment 302181 [details] [review] is now merged into the patch in bug 748325
Comment 5 Matthias Clasen 2018-02-10 05:18:53 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 6 Matthias Clasen 2018-04-15 00:17:09 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new