7

I am trying to find what is the upper limit of Scripting.Dictionary? Is there one?

It could be either limit on number of elements or size of memory. I could not trace any info on that.

3
  • 2
    Well, some say If you have to ask, you're probably doing something wrong. Why do you need this info and what are you trying to achieve? Mar 11, 2013 at 15:55
  • 1
    I have been reviewing the code for Dictionary sorting and the implementation was limited to 32,767 elements in the dictionary. And that triggered my question. I am afraid I do not try to achieve anything spectacular apart from feeding my curiosity :)
    – Juliusz
    Mar 11, 2013 at 16:41
  • 3
    The last test I did only went up to a million, which Dictionary handled fine (although Collection was more efficient than Dictionary above 500K rows) fastexcel.wordpress.com/2012/07/10/… Mar 11, 2013 at 16:58

1 Answer 1

6

From everything I've ever encountered (and can't seem to find any documentation to contradict this), the dictionary has no implicit upper limit and is only limited by the amount of memory you have available.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.