You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#990 introduced the ability to hot-swap PHP runtimes. Unfortunately, I didn't find an easy way of reusing the existing FS object and had to introduce a recreateMemFs helper that copies the data to the new filesystem.
Perhaps that's unnecessary. Let's explore reusing the old FS object directly.
The text was updated successfully, but these errors were encountered:
adamziel
changed the title
PHP.hotSwapPHPRuntime: Reuse the FS object instead of copying the contents
PHP.hotSwapPHPRuntime: Reuse the FS object instead of copying its contents
Feb 2, 2024
Perhaps the same PROXYFS technique as used in #1069 would work here. I'm just worried it would require retaining the entire HEAP of the original PHP instance even after that process is killed.
#990 introduced the ability to hot-swap PHP runtimes. Unfortunately, I didn't find an easy way of reusing the existing FS object and had to introduce a
recreateMemFs
helper that copies the data to the new filesystem.Perhaps that's unnecessary. Let's explore reusing the old FS object directly.
The text was updated successfully, but these errors were encountered: