2017-06-28 8:13 GMT-03:00 Tim Mackinnon <tim@testit.works>: > FYI: I managed to get it to work - I still get the message about trying to > save the changes file and it not being possible - however my error was not > specifying —no-default-preferences and also around correctly escaping the > command line - the “eval” command is a bit tricky as you need to escape any > “ characters as they are badly interpreted. > > Thus I had to do the following: > > const child = exec('./pharo Pharo.image --no-default-preferences eval > "Lambda processJSON: \'' + JSON.stringify(event).replace(/"/g,'\\"') + > '\'"', (error) => { > > } > > It looks like a simple lambda execution takes about 2700 to 2900ms
I guess it is more affordable to pay for 3 secs than for a whole minute with 95% idle time. However it seems to be a lot of time for the case of lambda use cases. Esteban A. Maringolo