Help me optimize this code that enumerates all possible GUIDs | Hacker News Reader