GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — load modules concurrently #4545 by roryc89 · Pull Request #4549 · purescript/purescript Conversation
|
|
@f-f anything blocking merge here? this change looks lovely |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We'll need another review from the core team - could anyone take a look? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nits aside, I'm surprised that this is reported to decrease memory use because my understanding is that mapConcurrently will spawn every one of these tasks at once. Has that been confirmed on very large projects? What about consumption of other resources—open file handles or something?
I'd be more comfortable with this if we used primitives like pooledMapConcurrently instead. OTOH, I don't do much maintenance of the Ide modules so if the team members who do are happy with this I won't block it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import Language.PureScript.Ide.Usage (findUsages) | ||
| import System.Directory (getCurrentDirectory, getDirectoryContents, doesDirectoryExist, doesFileExist) | ||
| import System.FilePath ((</>), normalise) | ||
| import Control.Concurrent.Async.Lifted (mapConcurrently, mapConcurrently_) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nit: insert into the imports in alphabetical order, please.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import Control.Concurrent.Async.Lifted (mapConcurrently) | ||
| import Control.Monad.Trans.Control (MonadBaseControl) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same nit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import Language.PureScript qualified as P | ||
| import Language.PureScript.Errors.JSON qualified as P | ||
| import Language.PureScript.Ide.Filter.Declaration (DeclarationType(..)) | ||
| import Control.Monad.Trans.Control (MonadBaseControl) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same nit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, I think this does merit its own changelog entry. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.