How to compare two unsorted maps

Hello there,

I am working in blueprints.

I have a library of map datastructures where the keys are strings and values are integers. I am then generating new map datastructures during runtime and want to check if the new generated map exists in the library, however the order of the new map may vary.

What is the fastest way to compare two unsorted maps?

I need this to be fast, cause the maps will be large and so will the library.

Thanks in advance

Maps are always unsorted.

When you say ‘compare’, do you mean, ‘are they the same’ or…?

Because the whole point of a map is that each key can only be in there once. So if you use the ADD node, and the key is already there, the entry will be reused.