[
https://issues.apache.org/jira/browse/ARROW-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448756#comment-16448756
]
Antoine Pitrou commented on ARROW-2499:
---------------------------------------
That looks nice, but I would like to know how to abstract away the fact that we
need two separate loops for performance in the example above. pybind11
basically has us write the checks and separate loops by hands. Perhaps a
`for_each` like facility? But what should the signature look like?
Also, should we take the pybind11 code as-is or write our own?
> [C++] Add iterator facility for Python sequences
> ------------------------------------------------
>
> Key: ARROW-2499
> URL: https://issues.apache.org/jira/browse/ARROW-2499
> Project: Apache Arrow
> Issue Type: Wish
> Components: C++
> Reporter: Antoine Pitrou
> Priority: Major
>
> The idea is to factor out something like the following:
> https://github.com/apache/arrow/pull/1935/files#diff-6ea0fcd65b95b76eab9ddfbd7a173725R78
> However I'm not sure which idiom or pattern we should choose. [~cpcloud] any
> idea?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)