@mauve cool would be nice to know if my guess is right.
If two maps need to get compared, i would iterate the first map and look in the second if the key exist. So i guess using of maps will be faster ( because of the key lookup), than to create two arrays of keys and do the lookup there.
But i prefer to use a readable solution over an fast one
Currently i have no time ( maybe tomorrow ) to do an benchmark about this. If you are faster, please inform us about your result