Use prim_file and create separate ports for each process you want to run fileops in parallel. We have a fileops module that just creates ports and stuff it into the process dictionary to reused, which works out well, since lifecycle of the ports works with
the lifetime of the process. This works around the file_server_2 bottleneck.
I looked up in stdlib file.erl and discovered that it makes gen_server:call to process registered under file_server_2, which is hardcoded in source.
There is not way to achieve what I want?
Confidentiality Notice | This email and any included attachments may be privileged, confidential and/or otherwise protected from disclosure. Access to this email by anyone other than the intended recipient is unauthorized. If you believe you have received this
email in error, please contact the sender immediately and delete all copies. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
erlang-questions mailing list
[hidden email] http://erlang.org/mailman/listinfo/erlang-questions