News for hackers. Stuff that matters.
Re:Make your programs run faster by better using the data ca... by jamann on Saturday June 24, 2023 @06:36AM (#36457407)
> an array of structures, the compiler/language should be able to turn that into a structure of arrays

class Point:

    i: int

    def get_x():

        return x_array[i]
# shift every point

x_array += 1

There are no comments on this comment yet.