Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11854

Serialization of arrays of primitives in python thin client is not optimal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: thin client
    • Labels:
      None

      Description

      The following code hangs indefinitely inside of invocation to my_cache.put()

      from pyignite import Client
      
      arr_len = 3_000_000
      
      content = bytearray(arr_len)
      
      for i in range(arr_len):
          content[i] = i % 256
      
      client = Client()
      client.connect('127.0.0.1', 10800)
      my_cache = client.get_or_create_cache('my cache')
      my_cache.put("key_bin", content)

      While the value is only 3MB in size. Implementation of serialization of primitive arrays seems to be quadratic in length of the array.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Melnichuk Dmitry Melnichuk
                Reporter:
                dmekhanikov Denis Mekhanikov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m