Also saves memory and speeds up loading by using an iterator instead of loading all tables into memory at once.
@NeoChaos12 note on the keyword del. It's un-intuitive but it actually just decrements the reference count on the object, it won't collect it until the garbage collector comes along. Doesn't really matter here but I've encountered bugs because of this so thought you should know about it.
Also saves memory and speeds up loading by using an iterator instead of loading all tables into memory at once.
@NeoChaos12 note on the keyword
del
. It's un-intuitive but it actually just decrements the reference count on the object, it won't collect it until the garbage collector comes along. Doesn't really matter here but I've encountered bugs because of this so thought you should know about it.