Hi all, I am a student entering the data analysis world and perfomance is beginning to be an issue as I am moving towards more and more data.
The generic question is: if one uses vectors instead of arrays how much slower can things get? Are there any clear benefits when using vectors.
If you have absolutely no idea of what the length will be I guess one goes with vectors. But what if you can set a satisfying upper limit and use a big array of which you use only a part every time like described in the manual. Which is the way to go?
Specifically I am getting very long process time on creating a tree wich includes 10 branches using vectors, average length of vector is let’s say 10, tree has 5000 entries . The reason I am asking and not trying it is that the code is a mess and If I go through the pain I want to know if there is any sense in doing it. I tried in simpler cases but I saw no difference because processing was fast in both cases.
p.s. how can I measure the time it takes to run a script, or a function from a program created with .L when using CINT?