Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jan 28, 2025

Fixes #1332

  • Loading of docs now async
  • Loading of sidebar folder children now async
  • Sidebar folder only expanded after docs finish loading.

A consequence of this is that documents are restored sequentially in order to more easily determine when they have all loaded. Tests with multiple large text files (10,000 lines) indicate that this is unlikely to be significant in practice.

@jeremypw jeremypw changed the title Load children asynchronously Load sidebar folder children asynchronously after docs finished loading Jan 28, 2025
@jeremypw jeremypw marked this pull request as ready for review January 28, 2025 19:11
# Conflicts fixed:
#	src/MainWindow.vala
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a bunch of new compilation warnings about implicit begin being deprecated after making open_documen async

@jeremypw jeremypw marked this pull request as draft February 6, 2025 19:21
@jeremypw
Copy link
Collaborator Author

jeremypw commented Feb 6, 2025

Sorry about that - I'll fix tomorrow.

@jeremypw jeremypw marked this pull request as ready for review February 7, 2025 12:19
@jeremypw jeremypw requested a review from danirabbit February 7, 2025 12:19
@zeebok
Copy link
Contributor

zeebok commented Apr 16, 2025

@jeremypw Conflicts to resolve!

@jeremypw
Copy link
Collaborator Author

@zeebok Thanks for your sterling work reviewing! I have fixed the conflicts and also silenced a couple of terminal warnings. There are still some terminal warnings but they also occur in master so I'll address those separately.

@leonardo-lemos
Copy link
Collaborator

@danirabbit can you take a look at this again, please?

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opens fast! I do have a bunch of new criticals when running. Seems like one for each folder:

dani@mini:~/Projects/code/build$ io.elementary.code 

(io.elementary.code:64562): GLib-GObject-CRITICAL **: 08:37:23.127: ../../../gobject/gsignal.c:2685: instance '0x64951fced720' has no handler with id '627'

(io.elementary.code:64562): GLib-GObject-CRITICAL **: 08:37:23.129: ../../../gobject/gsignal.c:2685: instance '0x64951fea4b70' has no handler with id '3400'

(io.elementary.code:64562): GLib-GObject-CRITICAL **: 08:37:23.129: ../../../gobject/gsignal.c:2685: instance '0x64951fec5390' has no handler with id '3516'

(io.elementary.code:64562): GLib-GObject-CRITICAL **: 08:37:23.129: ../../../gobject/gsignal.c:2685: instance '0x64951fec1320' has no handler with id '3485'

@jeremypw
Copy link
Collaborator Author

jeremypw commented May 9, 2025

@danirabbit I am getting the same "no handler" messages with the master branch (on closing the app).

@jeremypw
Copy link
Collaborator Author

jeremypw commented May 9, 2025

With the latest commit and with the word completion plugin turned off, there should be no terminal warnings. There are a lot of unreviewed changes to the completion plugin pending so I'll not attempt to fix those other warnings at this point.

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Nice work 🚀

@danirabbit danirabbit merged commit d23410b into master May 9, 2025
6 checks passed
@danirabbit danirabbit deleted the jeremypw/load-large-folders-faster branch May 9, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar is slow to expand folders containing moderately many (2000) files first time

5 participants