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

[JS] Use iterators instead of generators in critical code paths

    XMLWordPrintableJSON

Details

    Description

      I found that generators are generally slower than iterators in most browsers. See https://observablehq.com/@domoritz/yield-vs-iterator-vs-callback. I attached the results for Chrome. We should consider using iterators instead of generators for iterating over row proxies and vectors. 

      Attachments

        Issue Links

          Activity

            People

              domoritz Dominik Moritz
              domoritz Dominik Moritz
              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 - 1h 10m
                  1h 10m