I'm running into an issue where attempting to run code on IBM's Swift Sandbox is causing some sort of internal timeout.
Swift Ver. 3.0.1 (Release) Platform: Linux (x86_64) Error running code: WARNING: Your kernel does not support swap limit capabilities, memory limited without swap. /swiftfiles/doit.sh: line 51: 42 Illegal instruction timeout ${TIMEOUT} .build/debug/TempCode
The code in question is decoding a large Base64 encoding String:
let base64EncodedInput = [really really long string]
let inputData = Data(base64Encoded: base64EncodedInput)!
let inputDecodedString = String(data: inputData, encoding: .utf8)!
let rowArray = inputDecodedString.components(separatedBy: "\n")
You can see the full data string and run the code online here.
Am I maxing out the time allocated to run my Swift process? What is the timeout?