madsbk / distnumpy

Automatically exported from code.google.com/p/distnumpy
http://www.bh107.org
0 stars 1 forks source link

Efficient memory allocation of temporary arrays. #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A lot of temporary arrays are used in most NumPy programs and they are handled 
quit efficient by Malloc because all Mallocs are almost immediately followed by 
a Free. 
However, this is not the case in DistNumPy where lazy evaluation often causes 
the temporary arrays to be allocated before any of them has been freed. 
DistNumPy will therefore often use more memory the NumPy.

Original issue reported on code.google.com by madsbk on 5 Jan 2011 at 9:16

GoogleCodeExporter commented 9 years ago
One improvement is to lazy allocate arrays. 
At the moment arrays are allocated immediately.

Original comment by madsbk on 21 Jan 2011 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by madsbk on 21 Jan 2011 at 1:22

GoogleCodeExporter commented 9 years ago
Lazy array allocation has been implemented in r325. However, it didn't improve 
the performance that much.

Original comment by madsbk on 31 Jan 2011 at 3:06