comp.lang.ada
 help / color / mirror / Atom feed
* Efficiency and overhead: Ada.Containers.Vectors.vector versus array type
@ 2012-01-21 18:19 Ada BRL
  2012-01-21 18:40 ` Simon Wright
  2012-01-21 19:11 ` Jeffrey Carter
  0 siblings, 2 replies; 4+ messages in thread
From: Ada BRL @ 2012-01-21 18:19 UTC (permalink / raw)


Hello everyone!

I need some hints about Ada.Containers.Vectors.vector efficiency.

I'm developing a multithreaded real time application in Ada.

I need a "collection" of objects (every object has a lot of records
like task objects, Gnat.Sockets and so on...);
This collection is accessed several times during the execution.
In the meantime I don't have to insert and delete any items during the
execution, I just need to instantiate N object when the application
starts and then the number of objects will remain the same throughout
the execution.

Since I know how many object will be inside the collection I thought
to use, as the collection I need, the "array standard type".
In the meanwhile the Ada.Containers.Vectors.vector object is far more
practical, simple and has even more interesting and useful functions
like iterators and so on.

For this reason, since I don't have any experience in Ada, I ask you
all what can you suggest me to use.
If there is no such difference in efficiency/overhead between array
types and Ada.Containers.Vectors.vector I'll definitely use the
latter.

Thank you so much!



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-22 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21 18:19 Efficiency and overhead: Ada.Containers.Vectors.vector versus array type Ada BRL
2012-01-21 18:40 ` Simon Wright
2012-01-21 19:11 ` Jeffrey Carter
2012-01-22 15:05   ` Ada BRL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox