arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARROW-85) C++: memcmp is too expensive for Buffer's Equal
Date Mon, 28 Mar 2016 15:50:25 GMT

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

Wes McKinney commented on ARROW-85:
-----------------------------------

The `Equals` method compares the buffers' *contents*, so you need to compare the memory somehow.


> C++: memcmp is too expensive for Buffer's Equal
> -----------------------------------------------
>
>                 Key: ARROW-85
>                 URL: https://issues.apache.org/jira/browse/ARROW-85
>             Project: Apache Arrow
>          Issue Type: Improvement
>            Reporter: Kai Zheng
>
> It looks too expensive to use memcmp to compare two buffers. Instead, the starting address
and length/capacity would be good enough to use. Higher level codes relying on memcmp behaviour
can be done in higher level.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message