seyatutome / distnumpy

Automatically exported from code.google.com/p/distnumpy
0 stars 0 forks source link

Efficient memory allocation of temporary arrays. #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 8 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 8 years ago

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

GoogleCodeExporter commented 8 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