[sage-support] Re: Use lazy_attribute in cython?

2012-05-02 Thread Simon King
Hi! On 2012-05-02, P Purkayastha ppu...@gmail.com wrote: --=_Part_843_14196874.1335939956360 Content-Type: text/plain; charset=ISO-8859-1 Is there a way to use lazy_attribute in cython code? lazy_attribute requires that the object allows attributes to be set. Thus, it works if you have a

Re: [sage-support] Re: Use lazy_attribute in cython?

2012-05-02 Thread P Purkayastha
On 05/02/2012 02:56 PM, Simon King wrote: Hi! On 2012-05-02, P Purkayasthappu...@gmail.com wrote: --=_Part_843_14196874.1335939956360 Content-Type: text/plain; charset=ISO-8859-1 Is there a way to use lazy_attribute in cython code? lazy_attribute requires that the object allows

Re: [sage-support] Re: Use lazy_attribute in cython?

2012-05-02 Thread Mike Hansen
On Wed, May 2, 2012 at 12:08 AM, P Purkayastha ppu...@gmail.com wrote: Currently, in my Sage (python) code, I used lazy_attribute to achieve this. I tested the computation using cython and without lazy attribute and it speeds up by a factor of about 3 compared to the python code. So, I am

Re: [sage-support] Re: Use lazy_attribute in cython?

2012-05-02 Thread P Purkayastha
On 05/02/2012 03:22 PM, Mike Hansen wrote: On Wed, May 2, 2012 at 12:08 AM, P Purkayasthappu...@gmail.com wrote: Currently, in my Sage (python) code, I used lazy_attribute to achieve this. I tested the computation using cython and without lazy attribute and it speeds up by a factor of about 3