Hash tables are the fastest way but only last for as long as you keep mIRC running. If you close mIRC then all hash tables are lost forever.

Variables are better when you want to store settings for your scripts. .ini files are okay but they are argueably the slowest of the lot. I'm not sure whether that is any slower than global variables though, both read from and write to a text file which is what makes them slow.