[webkit-changes] [WebKit/WebKit] a66c16: [JetStream2] Always instantiate Float32Array in th...

Ryosuke Niwa noreply at github.com
Tue Jan 16 15:57:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a66c16294ae1466bf352116ef7fe008bd22eda9c
      https://github.com/WebKit/WebKit/commit/a66c16294ae1466bf352116ef7fe008bd22eda9c
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M PerformanceTests/JetStream2/worker/async-task.js
    M PerformanceTests/JetStream2/worker/segmentation.js

  Log Message:
  -----------
  [JetStream2] Always instantiate Float32Array in the cost array of findOptimalSegmentationInternal.
https://bugs.webkit.org/show_bug.cgi?id=267436

Reviewed by Yusuke Suzuki.

The cost array in findOptimalSegmentationInternal is always intended to be an array of Float32Array
but we were forgetting to instantiate Float32Array for the very first item in the array.

This PR makes it more consistent across the array.

* PerformanceTests/JetStream2/worker/async-task.js:
(Statistics.new.findOptimalSegmentationInternal):
* PerformanceTests/JetStream2/worker/segmentation.js:
(Statistics.new.findOptimalSegmentationInternal):

Canonical link: https://commits.webkit.org/273102@main




More information about the webkit-changes mailing list