release memory used in python function composition -


i dealing large arrays , huge number of loops, while script failed because of memory limit or bus error.

now want optimize code little bit, release memory using del , gc.collect() as possible @ each loop. since i've used bunch of nested functions, such result = functiona(functionb(data, time)), wondering how can release memory in implementation?

basically, want have same effect of doing following:

b = functionb(data, time) result = functiona(b) del b; gc.collect() 

any suggestions appreciated!


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -