[ 
https://issues.apache.org/jira/browse/IGNITE-11854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314717#comment-17314717
 ] 

Ivan Daschinskiy commented on IGNITE-11854:
-------------------------------------------

[~dmekhanikov] Currently, serialization-deserialization are fully reworked, 
moreover, hashcode caclulation are now much faster due to C module
Here is some benchmarks (put-get) of BinaryObject with 10Mb field

{code:java}


------------------------------------------------ benchmark 'binary_object_get': 
1 tests ------------------------------------------------
Name (time in ms)                                  Min      Max     Mean  
StdDev   Median     IQR  Outliers      OPS  Rounds  Iterations
----------------------------------------------------------------------------------------------------------------------------------------
benchmark_sync_binary_get[simple-10485760]     67.7753  73.2509  70.5726  
1.6236  70.5608  1.9794       3;0  14.1698      10         100
----------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------ benchmark 'binary_object_put': 
1 tests ------------------------------------------------
Name (time in ms)                                  Min      Max     Mean  
StdDev   Median     IQR  Outliers      OPS  Rounds  Iterations
----------------------------------------------------------------------------------------------------------------------------------------
benchmark_sync_binary_put[simple-10485760]     61.6861  66.3933  63.5946  
1.7068  62.9506  3.0117       3;0  15.7246      10         100
----------------------------------------------------------------------------------------------------------------------------------------

{code}
70ms for get and 60ms for put doesn't seems to be infinite, does it? And this 
is without partition awareness :)


> Serialization of arrays of primitives in python thin client is not optimal
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-11854
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11854
>             Project: Ignite
>          Issue Type: Bug
>          Components: thin client
>    Affects Versions: 2.7
>            Reporter: Denis Mekhanikov
>            Assignee: Dmitry Melnichuk
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> The following code hangs indefinitely inside of invocation to 
> {{my_cache.put()}}
> {code:java}
> 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){code}
> While the value is only 3MB in size. Implementation of serialization of 
> primitive arrays seems to be quadratic in length of the array.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to