Boo/C#: Returning a collection performance -
i have function gets collection reference, iterates on it, constructs new collection of same length containing updated structs, returns collection (or rather reference it, since it's boo/c# code).
i'm worried performance of such function. performance lot worse updating collection reference? need call function tens of times per second.
thank you. alisa.
p.s.: why doing this? i'm trying move onto functional programming , make pure possible.
it slower, not much. consume more memory you'll have 2 collections in ram whenever you're updating structs.
the impact on performance affected collections' sizes.
the best way answer question create both functions, profile them.
Comments
Post a Comment