diff options
author | Anthony Ramine <[email protected]> | 2013-04-05 11:47:02 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2013-04-11 14:28:45 +0200 |
commit | 9f2c736e273aed9034aeab2d2877b5c52cc8d327 (patch) | |
tree | 48aaedb3b41004bf8378ad6e7a5b33a5f437f782 /lib/kernel/test/code_a_test.erl | |
parent | e72043e3519cb14aabf461849eba959b97e07410 (diff) | |
download | otp-9f2c736e273aed9034aeab2d2877b5c52cc8d327.tar.gz otp-9f2c736e273aed9034aeab2d2877b5c52cc8d327.tar.bz2 otp-9f2c736e273aed9034aeab2d2877b5c52cc8d327.zip |
Optimize communication with file io server
The file module communicates with a file io server with the following
protocol for file operations:
> {file_request,From,ReplyAs,Request}
< {file_reply,ReplyAs,Reply}
The ReplyAs value is sent by the client side to match against when
receiving the reply and is otherwise left untouched and passed as is by
the server.
This commit enables receive optimizations by using the reference of the
server monitor, changing the protocol to:
> {file_request,From,MonitorRef,Request}
< {file_reply,MonitorRef,Reply}
As the shape of the messages is not changed, backwards compatibility is
not a concern.
Diffstat (limited to 'lib/kernel/test/code_a_test.erl')
0 files changed, 0 insertions, 0 deletions