S
S
SashaFarkas2018-07-25 06:11:11
Data Structures
SashaFarkas, 2018-07-25 06:11:11

Which data structure is better in a particular case?

Which is more performant in CIL for FIFO implementation: Queue or a class that has a List listName and contains an Enqueue method whose implementation looks like this: listName.Insert( 0, listItem);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Eremin, 2018-07-25
@EreminD

Well, Queue will be more reliable - a thoughtful, tested and time-tested class.
There must be a good reason to write your turn

D
Daniil Basmanov, 2018-07-30
@BasmanovDaniil

Firstly, take it and conduct a test, if performance is so critical to you, guessing in such situations is useless.
Secondly, I am more than sure that Queue will be enough for your eyes and ears, and you are simply distracted by unimportant things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question