Closed ai closed 6 months ago
We need to test Windows and Mac performance. I have access to both.
@ai, what exactly do I need to test? I've already tried running pnpm test, and I've noticed a perceptible slowdown when using the development container. Although it's still usable, the difference in performance is noticeable.
pnpm test 142.77s user 40.95s system 343% cpu 53.452 total
Executed in 24.23 secs fish external
usr time 59.70 secs 0.07 millis 59.70 secs
sys time 7.97 secs 1.13 millis 7.97 secs
(time
output)
asdf has conflict with nvm.
AFAIU it's not asdf causing the problems, it's pnpm. pnpm is trying to be an alternative not only for npm, but also for nvm for whatever reason.
And if the console in the current folder shows that Node 22 is being used, pnpm is still using Node 20 under the hood.
At least this is the problem I had with Volta
@baileys-li sad. On Linux I have no big difference in performance.
Don’t worry, you can still install everything locally and run without VM.
For the first time in my life, I decided to try to do something in the open source project, and decided to do everything as Andrei told to do, run through containers. The launch failed))) 😄
Mackbook M1
@mike-minchenko what error did you have? We may need a little tuning for Docker and Mac.
This was the first error. After which I added the line to --platform linux/amd64. Everything started, but all the RAM on my laptop was loaded and the computer began to freeze.
@mike-minchenko what way do you use to run Docker images?
Via Devcontainers in VSCode
@mike-minchenko I mean what tool do you have to run Docker images in the system?
Maybe you use Docker Desktop for Intel?
Can you tried to run other Docker images on your system?
I'm using Docker Desktop for Apple Silicon.
I can run other images.
I'm not very familiar with Docker and its settings. I'll look into it
Right now we use
asdf
to sync environment. It has a few problems:asdf
has conflict withnvm
. The conflict behavior is very strange and user can spend a lot of time finding the source of issue.node_modules
may contain malware. It should not have full access to user’s home folder with credentials JSONs and private files. Dev Container isolate project.Risks: