MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / expected_communication

Method expected_communication

Compiler/program.py:944–955  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

942 self.recommended.add(key)
943
944 def expected_communication(self):
945 if self.options.ring:
946 bit_length = int(self.options.ring)
947 elif self.options.prime:
948 bit_length = self.prime.bit_length()
949 else:
950 # check against OnlineOptions.cpp
951 bit_length = max(self.required_bit_length("p"), 128)
952 bit_length = int(math.ceil(bit_length / 64) * 64)
953 length = int(math.ceil(bit_length / 8))
954 return expected_communication(
955 self.options.execute, self.req_num or Tape.ReqNum(), length)
956
957 def warn_about_slow_loop(self):
958 if not self.warned_about['loop']:

Callers 2

write_bytesMethod · 0.95
finalize_compileMethod · 0.80

Calls 4

required_bit_lengthMethod · 0.95
maxFunction · 0.85
expected_communicationFunction · 0.85
bit_lengthMethod · 0.80

Tested by

no test coverage detected