SIGN IN SIGN UP

reapply the revert made in r83875

Now the _collections is statically built, the build dependencies are in proper
order and build works fine.

Commit Log from r83874:
Issue 9396.   Apply functools.lru_cache in the place of the
random flushing cache in the re module.
S
Senthil Kumaran committed
9f347ea5457604694a8e1f94e18e9d00e85bded7
Parent: 5c87c1a