fastcache is a library you can install that will make the new caching
in 0.7.6 faster, since it is written in C. I don't know how it handles
threads.

Aaron Meurer

On Wed, Feb 25, 2015 at 3:33 PM, Paul Royik <[email protected]> wrote:
> I'm using 0.7.6, but didn't hear about fastcache.
> Can you tell me what is it.
>
> Also, can you tell me will be there cache mixing in multithreaded
> environment like mod_wsgi?
>
> On Wednesday, February 25, 2015 at 10:58:53 PM UTC+2, Aaron Meurer wrote:
>>
>> Are you using 0.7.6 (note that it introduced a new cache)? And if so,
>> are you using fastcache?
>>
>> Aaron Meurer
>>
>> On Wed, Feb 25, 2015 at 10:04 AM, Paul Royik <[email protected]> wrote:
>> > It appeared, that problem is with cache.
>> > Clearing cache solves the problem.
>> >
>> > Now, I want to ask, how cache is working in multithreaded environment?
>> > Do all people share same cache?
>> >
>> >
>> > On Wednesday, February 25, 2015 at 4:11:03 PM UTC+2, Paul Royik wrote:
>> >>
>> >> Hello.
>> >>
>> >> I recently needed to make all variables in expression positive.
>> >>
>> >> I do this like following:
>> >>
>> >> f = log(x)
>> >> a=Wild('a')
>> >> symbols = f.free_symbols
>> >> for symbol in symbols:
>> >>    f = f.subs(symbol, dummy)
>> >>    f = f.subs(symbol, sympy.Symbol(symbol.name, positive=True))
>> >>
>> >>
>> >> Now, when I do f.replace(log(a), log(Abs(a))) it shows log(x) as
>> >> expected,
>> >> since x is positive
>> >> Now, make inverse process: convert positive to any
>> >>
>> >> for symbol in symbols:
>> >>    f = f.subs(symbol, dummy)
>> >>    f = f.subs(symbol, sympy.Symbol(symbol.name))
>> >>
>> >> But f.replace(log(a), log(Abs(a))) shows log(x) and in debugger x is
>> >> still
>> >> positive.
>> >>
>> >> Setting f.subs(symbol, sympy.Symbol(symbol.name, positive=None))
>> >> doesn't
>> >> help.
>> >> Helps following:
>> >> f.subs(symbol, sympy.Symbol(symbol.name, positive=False))
>> >> But I don't want negative variable.
>> >> How can I just reset assumptions?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "sympy" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to [email protected].
>> > To post to this group, send email to [email protected].
>> > Visit this group at http://groups.google.com/group/sympy.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/sympy/300957bd-6491-4a70-98b1-1fe7edde327b%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/dfd961fc-ef83-4a54-aadf-9c9c37715670%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BTMLwdQ5%3D5%3DDN-R_184sKYOOfLzcvrthYVZq9FfQ6Uww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to