Hi, 

I encountered an Memory Error while running pyjsbuild to translate python 
source.  The source code contains about 40000 dict entries (total 4 Mega 
bytes).  The memory usage soars above 3 Giga bytes right before the error.

I tried to change the dict (data={a:b, c:d, ...})  to tuple initialization 
(data=dict([(a,b), (b,c), ...])). But no difference on the memory error.  

I tried to use list instead of dict (data=[(a,b), (c,d), ...]), No 
difference again

And, I tried to split the dict into small dicts.  But no difference again.

data={a:b}
data.update({c:d})
data.update({e:f})
...

 
It seems that the memory error is not specific to dict type, but dependent 
on source size itself. Is there source size limit on pyjsbuild? is there a 
way to translate python source over 4 M bytes?

Thanks.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to