Skip to content

feat: iterative execution for DateTimePartsArray#7698

Merged
joseph-isaacs merged 11 commits into
developfrom
ji/iter-exe-datetime-parts
Apr 30, 2026
Merged

feat: iterative execution for DateTimePartsArray#7698
joseph-isaacs merged 11 commits into
developfrom
ji/iter-exe-datetime-parts

Conversation

@joseph-isaacs
Copy link
Copy Markdown
Contributor

No description provided.

joseph-isaacs and others added 4 commits April 27, 2026 16:41
Move require_child! before inline execute_mask so the child is executed
through the scheduler, enabling cross-step optimization via
reduce_parent rules.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add #[array_slots] macro for DateTimePartsSlots
- Add DateTimePartsParts struct + OwnedExt trait for into_parts(self)
- require_child! days => Primitive, seconds/subseconds => AnyCanonical
- decode_to_temporal handles Constant fast path for seconds/subseconds

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…me-parts

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 28, 2026

Merging this PR will degrade performance by 31.37%

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 1127 untouched benchmarks
⏩ 33 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation decompress[datetime_for_bp] 1.6 ms 2.4 ms -31.37%
Simulation new_bp_prim_test_between[i16, 32768] 133.9 µs 121.5 µs +10.19%
Simulation new_bp_prim_test_between[i64, 32768] 235.8 µs 176.7 µs +33.48%

Comparing ji/iter-exe-datetime-parts (8191d39) with develop (d2d79f0)

Open in CodSpeed

Footnotes

  1. 33 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
…me-parts

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>

# Conflicts:
#	vortex-array/src/arrays/masked/array.rs
#	vortex-array/src/arrays/masked/vtable/mod.rs
@joseph-isaacs joseph-isaacs marked this pull request as ready for review April 28, 2026 14:15
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
…me-parts

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs requested a review from 0ax1 April 29, 2026 09:40
fn fmt(&self, _f: &mut Formatter<'_>) -> std::fmt::Result {
Ok(())
}
pub struct DateTimePartsParts {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has the same fields as DateTimePartsSlots do we need both?

Copy link
Copy Markdown
Contributor Author

@joseph-isaacs joseph-isaacs Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think consistency beats duplication?

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs merged commit 70eee88 into develop Apr 30, 2026
64 of 70 checks passed
@joseph-isaacs joseph-isaacs deleted the ji/iter-exe-datetime-parts branch April 30, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants