Skip to content

HeatStressR 2.4.0

Choose a tag to compare

@zyf0717 zyf0717 released this 01 Sep 16:21

HeatStressR 2.4.0 removes the coordinate-cardinality bottleneck from Liljegren solar geometry while preserving numerical and operational behavior.

Highlights

  • Deduplicates timestamp-only solar terms and applies one vectorized row-aligned longitude/latitude projection.
  • Removes hexadecimal coordinate keys, split groups, and R-level per-coordinate loops from the geometry path.
  • Preserves public APIs, WBGT semantics, solver equations, diagnostics, NA placement, and PSOCK architecture.
  • Adds focused geometry, end-to-end WBGT, and repeated/unique-coordinate parallel regression coverage.
  • Adds reproducible coordinate-cardinality benchmarks and refreshes the pre-fork comparison.

Performance

On the recorded 100,000-row workloads, fixed coordinates improved from 0.044 s to 0.017 s, 100 coordinates from 0.047 s to 0.015 s, and unique coordinates from 1.258 s to 0.015 s. The 1,000,000 unique-coordinate case improved from 16.871 s to 0.206 s, with peak RSS falling from 583.2 MiB to 264.5 MiB.

At 100,000 rows, the HeatStressR 2.4.0 batch engine completes in 0.951 s versus 49.423 s for the pre-fork implementation, a 51.97x speedup.

Compatibility and validation

The maximum absolute before/after difference was zero for zenith, WBGT, Tg, and Tnwb. Diagnostics, failure semantics, preprocessing diagnostics, chunk ordering, and NA placement were unchanged.

The release commit passed the full testthat suite and R CMD check, including the PDF manual and PSOCK validation from one through six workers.

This GitHub release is separate from the CRAN release process.

Full changelog: v2.3.0...v2.4.0