Conversation
This fix builds on the insight in denoland#55 but does so by performing the minimal change required to fix the underlying issue. The reason for this departure from denoland#55 is due to our project's build failing when executed using the proof of concept's plugin, presumably due to some unknown change introduced on part of the proof of concept's extensive revision. The fix reuses @notcome's lock component and threads said lock through the codebase to ultimately place it around the `deno info --json ${id}` calls.
|
ping @marvinhagemeister: any thoughts on this fix for the plugin to enable its use by bounding the concurrency of Happy to iterate and make changes! |
marvinhagemeister
left a comment
There was a problem hiding this comment.
LGTM, thanks for adding this
|
Looks like CI is stuck. Can you rebase against |
|
Any updates on this PR. It seems like its been sitting out here for a couple of months. Does something else need to be done with it? |
|
Hey, missed this for a while, but sure on MIT part. That lock code is basically generated by o3. That being said, I am no longer sure if this would be the best practice now. Our team have worked internally on an entirely new approach. Basically, we don't need
Consequently, we opt to enable Right now this plugin is dedicated to workspace + |
edit (2025-05-26):
For what it's worth:
We've forked this at https://github.com/masslbs/deno-vite-plugin and published the fork so that it can be used by ci: https://www.npmjs.com/package/@masslbs/deno-vite-plugin
Info from the fork's README:
This fix builds on the insight in #55 but does so by performing the minimal change required to fix the underlying issue. The reason for this departure from #55 is due to our project's build failing when executed using the proof of concept's plugin, presumably due to some unknown change introduced on part of the proof of concept's extensive revision.
The fix reuses @notcome's lock component and threads said lock through the codebase to ultimately place it around the
deno info --json ${id}calls.When building our project using this patch of the plugin, my CPU utilization never goes about ~30% and the memory usage stays more or less constant. This is compare to before, where CPU utilization hit 100% and I ran out of memory and my system froze.
Fixes #50 and closes masslbs/Tennessine#330
For reviewers:
deno-vite-pluginitself i.e. MIT; @notcome could you let me know whether you license my usage of yourLockclass under MIT as well?