Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: update descriptions for appending byte array

...

so the more (term, pattern) comparisons match requires the more expensive it is. The actual cost of comparing term against pattern is proportional to the byte size of the smaller object. This is based on the java equality method.

Methods



nthtoByteArrayhexToBytestoUtf8BytesuniondiffadddeletecontainsgetgetOrElsesetkeyssizelengthsliceappendinterpolate
ListC

--


n/an/an/an/an/an/an/an/an/an/an/an/aCproportional to value of higher index
Proportional
proportional to
sum
the length of
lengths
underlying stringn/a
GByteArrayn/an/an/an/an/an/an/an/anan/an/an/an/an/an/aproportional to value of higher index
Proportional to sum of lengths
proportional to the logarithm of length of target byte arrayn/a
TupleC--n/an/an/an/an/an/an/an/an/an/an/an/an/an/an/an/a
Setn/a--n/an/aproportional to the size of collection that is an argument method proportional to the size of collection that is an argument methodCCCn/an/an/an/aproportional to the size of base collection on which this method is called. Complexity of the size method is O(n)n/an/asame as unionn/a
Mapn/a--n/an/aproportional to the size of collection that is an argument method proportional to the size of collection that is an argument methodn/aCCCCCCproportional to the size of base collection on which this method is called. Complexity of the size method is O(n)n/an/asame as unionn/a
any termn/aproportional to the byte size of the underlying rholang termn/an/an/an/an/an/an/an/an/an/an/an/an/an/an/an/a
Stringn/a--proportional to the length of underlying stringproportional to the length of underlying stringn/an/an/an/an/an/an/an/an/an/aCproportional to value of higher indexproportional to the sum of the lengths
, because that's how string concatenation works in Java.
of both stringsproportional to length_of_string * number_of_entries_in_map
  • C - constant
  • n/a - method not available

...