minor optimization switching to wavefront pointers

This commit is contained in:
2024-11-08 21:51:17 +00:00
parent 1bbf38aaab
commit bd720f06fb
3 changed files with 9 additions and 9 deletions

View File

@@ -101,13 +101,13 @@ type WavefrontComponent struct {
}
// NewWavefrontComponent: returns initialized WavefrontComponent
func NewWavefrontComponent(preallocateSize int) WavefrontComponent {
func NewWavefrontComponent(preallocateSize int) *WavefrontComponent {
// new wavefront component = {
// lo = [0]
// hi = [0]
// W = []
// }
w := WavefrontComponent{
w := &WavefrontComponent{
lo: &PositiveSlice[int]{
data: []int{0},
valid: []bool{true},