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

Rok Mihevc commented on ARROW-4578:
-----------------------------------

This issue has been migrated to [issue 
#15976|https://github.com/apache/arrow/issues/15976] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [JS] Float16Vector toArray should be zero-copy
> ----------------------------------------------
>
>                 Key: ARROW-4578
>                 URL: https://issues.apache.org/jira/browse/ARROW-4578
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: JS-0.4.0
>            Reporter: Paul Taylor
>            Assignee: Paul Taylor
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: JS-0.4.1
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> The {{Float16Vector#toArray()}} implementation currently transforms each half 
> float into a single float, and returns a Float32Array. All the other 
> {{toArray()}} implementations are zero-copy, and this deviation would break 
> anyone expecting to give two-byte half floats to native APIs like WebGL. We 
> should instead include {{Float16Vector#toFloat32Array()}} and 
> {{Float16Vector#toFloat64Array()}} convenience methods that do rely on 
> copying.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to