the fork we are using only needs minimal extra memory since we do not write to the memory, but to make the fork ruby checks if 2x memory is available ... for memory constraint apps that is too much and safe-regex fails
Errno::ENOMEM: Cannot allocate memory
see https://blog.sundaycoding.com/blog/2014/02/05/fighting-paperclip-errno-enomem-error/
We could for example have an executable outside of lib that we communicate to via a unix socket and boot via system so it has a very low memory overhead.
the fork we are using only needs minimal extra memory since we do not write to the memory, but to make the fork ruby checks if 2x memory is available ... for memory constraint apps that is too much and safe-regex fails
see https://blog.sundaycoding.com/blog/2014/02/05/fighting-paperclip-errno-enomem-error/
We could for example have an executable outside of lib that we communicate to via a unix socket and boot via
systemso it has a very low memory overhead.