GNOME Bugzilla – Bug 769832
Blocks on startup
Last modified: 2016-08-16 15:48:15 UTC
The startup takes nearly 5 seconds on my machine, totem which also uses tracker takes less than 2 to startup. Is there any blocking IO being done on startup?
The call to `MameGameInfo.get_supported_game()` in mame-plugin.vala is done synchronously and the first call is really slow.
Created attachment 333409 [details] [review] core: Add GameUriAdapter This will be used in a subsequent commit to allow asynchrous convertion of a game file URI into a game object.
Created attachment 333410 [details] [review] generic: Add GenericSyncGameUriAdapter This will be used in a subsequent commit to allow asynchrous convertion of a game file URI into a game object from a delegate.
Created attachment 333411 [details] [review] tracker: Use GameUriAdapter in MimeTypeTrackerQuery Construct MimeTypeTrackerQuery from a GameUriAdapter object rather than a GameForUri callback. This will be used in the next commit to asynchronously create game objects in MIME type Tracker queries.
Created attachment 333412 [details] [review] mame: Add MameGameUriAdapter This will be used in the next commit to asynchronously create MAME games.
Created attachment 333413 [details] [review] mame: Make MameGameInfo.get_supported_games() async This avoids to hang the UI when preparing the list of suported games.
Attachment 333409 [details] pushed as 37d6f40 - core: Add GameUriAdapter Attachment 333410 [details] pushed as 61a3561 - generic: Add GenericSyncGameUriAdapter Attachment 333411 [details] pushed as 17f1670 - tracker: Use GameUriAdapter in MimeTypeTrackerQuery Attachment 333412 [details] pushed as a27ce8f - mame: Add MameGameUriAdapter Attachment 333413 [details] pushed as 43df301 - mame: Make MameGameInfo.get_supported_games() async