Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Decouple the session loader into reader and writer over the cache#4445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
soulomoon wants to merge78 commits intohaskell:master
base:master
Choose a base branch
Loading
fromsoulomoon:batch-load-multi-read

Conversation

soulomoon
Copy link
Collaborator

@soulomoonsoulomoon commentedNov 9, 2024
edited
Loading

Follow up of and already include the changes in#4439
Refactored session loader to use architecture that having multiple readers and writer over the cache .

In bigger project, HLS usually loading up slow. One of the main obstacle is that we are loading ghc options for files in strict sequential order.
I have made an attemp to improve the situation by refactoring this loading into reader and writer over cache. This way, the long laoding file won't be blocking already loaded files, making hls more responsive and smooth.

Also it eliminates session loading for the same file from being multiply requested, by lining up in an ordered set in stead of a list.

ibizaman, sourabhxyz, cloudyluna, unhammer, and dnikolovv reacted with hooray emoji
@soulomoonsoulomoon mentioned this pull requestNov 9, 2024
@soulomoonsoulomoon requested a review fromCopilotApril 27, 2025 14:36
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • cabal.project: Language not supported
  • ghcide/ghcide.cabal: Language not supported
  • ghcide/session-loader/Development/IDE/Session.hs: Language not supported
  • ghcide/session-loader/Development/IDE/Session/Diagnostics.hs: Language not supported
  • ghcide/session-loader/Development/IDE/Session/OrderedSet.hs: Language not supported

jian-lin and soulomoon reacted with eyes emoji
soulomoonand others added26 commitsApril 27, 2025 22:45
The session initialisation has too many implicit dependencies. To breakthese apart, we extract local functions and turn them into top-leveldefinition with all parameters explicitly given.This commit only makes sure session initialisation functions arepromoted to top-level definitions and tries to simplify them.The top-level definitions are lacking type signatures to make it easierto change them, but we plan to add them back.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@michaelpjmichaelpjAwaiting requested review from michaelpjmichaelpj will be requested when the pull request is marked ready for reviewmichaelpj is a code owner

@wz1000wz1000Awaiting requested review from wz1000wz1000 will be requested when the pull request is marked ready for reviewwz1000 is a code owner

@fendorfendorAwaiting requested review from fendorfendor will be requested when the pull request is marked ready for reviewfendor is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@soulomoonsoulomoon

Labels
performanceIssues about memory consumption, responsiveness, etc.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@soulomoon@fendor

[8]ページ先頭

©2009-2025 Movatter.jp