What is the time complexity of add spline point?

Specifically using blueprints, when creating a single large spline with many points, is it best to:
1) use the function “add spline point” repeatedly, or
2) create an array of locations then use the function “set spline points.”

Even better would be to know what the time complexities of these functions are?
For example, if add spline point is O(n) and set spline points is also O(n) then I dont want to take O(n^2) time to create a spline when I could be doing it in linear time.

Hi,

you can perform test on large amount points and compare function calls time consumption or try dive into profiler, maybe it have stats for specific function calls and their time execution Unreal Insights in Unreal Engine | Unreal Engine 5.1 Documentation

p.s. don’t forget mark question as answered with little gray circle button under any answer (not comment, but whole answer) when problem solved, so anyone else later can have same question and may find solution faster, if you find solution on your own, don’t forget write it too