STL, in large systems sims/high computing performance

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
neurocomp2003
Messages
1,359
Reaction score
4
(hehe here's another one for you dduardo :biggrin: )
Does anyone know if STL is used or is capable of being used in large system simulations? Or is it best to write your own datastructtures?
Looking to do some computational astrophysics or large neural nets and am not sure whether to use STL or not... I want to if it can be used for the large scale that I'm envisioning, but i don't now if there would be overhead that i wouldn't now about.
 
Physics news on Phys.org
W.A. Wulf said:
"More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity."
Hoare and Knuth said:
"Premature optimization is the root of all evil."
It would probably be best to use the STL data structures where convenient, to more quickly produce working code, and then figure out what and how to optimize.

(reference: Wikipedia)[/size]
 
Linus Torvald said:
"[...] the Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it."

If you can reinvent the wheel, do it!

(reference: http://en.wikiquote.org/wiki/Linus_Torvalds" )

j/k :-p
 
Last edited by a moderator:
vector stack, PQueue and list. are the ones I'm looking at. I'm just running a simple particle collision(n=1000) looking to go to n=10000 if i can find a system better than mind. Trying to land a research job. =]