Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4578

[JS] Float16Vector toArray should be zero-copy

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              paul.e.taylor Paul Taylor
              paul.e.taylor Paul Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h