Skip to content

Commit

Permalink
Merge pull request #893 from ronawho/opt-array-transfer-copies
Browse files Browse the repository at this point in the history
Further reduce the number of copies for client-server array transfers
  • Loading branch information
mhmerrill authored Aug 3, 2021
2 parents 022e06d + 5bd8191 commit 6ecd185
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/arkouda_server.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,8 @@ proc main() {
* string encapsulating user, token, cmd, message format and args from the
* remaining payload.
*/
var (rawRequest, payload) = reqMsgRaw.splitMsgToTuple(b"BINARY_PAYLOAD",2);
if reqMsgRaw.endsWith(b"BINARY_PAYLOAD") {
payload = socket.recv(bytes);
}
var (rawRequest, _) = reqMsgRaw.splitMsgToTuple(b"BINARY_PAYLOAD",2);
var payload = if reqMsgRaw.endsWith(b"BINARY_PAYLOAD") then socket.recv(bytes) else b"";
var user, token, cmd: string;

// parse requests, execute requests, format responses
Expand Down

0 comments on commit 6ecd185

Please sign in to comment.