[jira] [Commented] (IGNITE-5602) By bytes access to binary format
[ https://issues.apache.org/jira/browse/IGNITE-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16722419#comment-16722419 ] Dmitry Kiriy commented on IGNITE-5602: -- It would be also beneficial to write data to binary fields in streaming mode. The whole process will look like - external systems, who push binary/byte array data via [slower then memory]network will be able to create surround data quickly - i.e. transactions, put in queue/cache etc. In parallel, via streams, external systems will continue to fill binary/byte array data. And the same for reading. So, the whole ingite cache will not suffer from network slowness > By bytes access to binary format > > > Key: IGNITE-5602 > URL: https://issues.apache.org/jira/browse/IGNITE-5602 > Project: Ignite > Issue Type: New Feature >Affects Versions: 2.0 >Reporter: Vladislav Pyatkov >Priority: Major > Attachments: > 0001-Implement-streaming-API-to-BinaryObject.-See-IGNITE-.patch > > > Need to avoid memory additional allocation when pass bytes to stream. > Now we are doing only > {code} > BinaryObject get = (BinaryObject) cache.get(key); > byte[] dataFromCache = get.field("data"); > System.out.write(dataFromCache, 0, dataFromCache.length); > {code} > But we want to write bytes to stream directly, without allocation additional > {{byte[]}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (IGNITE-5602) By bytes access to binary format
[ https://issues.apache.org/jira/browse/IGNITE-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16265114#comment-16265114 ] Andrey Davydov commented on IGNITE-5602: I'm sorry. I miss notification about you comment. No problem. Feel free to refactor as need. My patch is just proof of concept. > By bytes access to binary format > > > Key: IGNITE-5602 > URL: https://issues.apache.org/jira/browse/IGNITE-5602 > Project: Ignite > Issue Type: New Feature >Affects Versions: 2.0 >Reporter: Vladislav Pyatkov > Attachments: > 0001-Implement-streaming-API-to-BinaryObject.-See-IGNITE-.patch > > > Need to avoid memory additional allocation when pass bytes to stream. > Now we are doing only > {code} > BinaryObject get = (BinaryObject) cache.get(key); > byte[] dataFromCache = get.field("data"); > System.out.write(dataFromCache, 0, dataFromCache.length); > {code} > But we want to write bytes to stream directly, without allocation additional > {{byte[]}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (IGNITE-5602) By bytes access to binary format
[ https://issues.apache.org/jira/browse/IGNITE-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16169682#comment-16169682 ] Vladislav Pyatkov commented on IGNITE-5602: --- [~aad] If you do not mind, I will assign the ticket to myself and prepare correct "pull request". Or you can do it yourself. > By bytes access to binary format > > > Key: IGNITE-5602 > URL: https://issues.apache.org/jira/browse/IGNITE-5602 > Project: Ignite > Issue Type: New Feature >Affects Versions: 2.0 >Reporter: Vladislav Pyatkov > Attachments: > 0001-Implement-streaming-API-to-BinaryObject.-See-IGNITE-.patch > > > Need to avoid memory additional allocation when pass bytes to stream. > Now we are doing only > {code} > BinaryObject get = (BinaryObject) cache.get(key); > byte[] dataFromCache = get.field("data"); > System.out.write(dataFromCache, 0, dataFromCache.length); > {code} > But we want to write bytes to stream directly, without allocation additional > {{byte[]}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)