I don't think it should affect performance much. The difference between calling a Python function and calling a Python class with a custom __call__ method shouldn't be very large. But you can time it and see. David
On Tue, Mar 31, 2009 at 2:21 PM, Henryk Trappmann <bo198...@googlemail.com>wrote: > > On Mar 31, 12:34 pm, David Roe <r...@math.harvard.edu> wrote: > > Having written a lazy p-adics class, my guess is that your pickling > errors > > have to do with the fact that you're storing a function. If you replace > all > > of the local functions that you're storing with callable classes (ie a > class > > that implements the __call__ method), you should be able to get pickling > to > > work. > > And this is no performance issue? > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---