Reduce memory size

My proposition is about manage table_map size because I have a very big database with around 7000 live tables. I want just to filter 10 tables, then table_map is huge and my program grows up to 1.4 Go. 
So I add just filtering table in table_map
The program works with pypy 2.40