Updates:
        Labels: Milestone-Release0.7.0

Comment #2 on issue 1545 by fab...@fseoane.net: Efficient data  
representation in logic.satisfiable()
http://code.google.com/p/sympy/issues/detail?id=1545

internal int representation should make ask much faster, since current  
bottlenecks
are in Basic.__eq__ and in BooleanFunction.eval (multidimensional is  
applied to that):


In[1]: %prun ask(2*x, Q.even, Assume(x, Q.integer))


    Ordered by: internal time

    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
20411/16890    0.044    0.000    0.064    0.000 basic.py:583(__eq__)
      9970    0.041    0.000    0.082    0.000  
multidimensional.py:96(wrapper)
      5908    0.034    0.000    0.082    0.000 basic.py:727(__invert__)
       126    0.025    0.000    0.153    0.001 dpll.py:67(unit_propagate)
     10176    0.018    0.000    0.024    0.000 cache.py:73(wrapper)
     38860    0.015    0.000    0.015    0.000 {isinstance}
      9992    0.013    0.000    0.013    0.000 {hasattr}
        22    0.013    0.001    0.057    0.003 dpll.py:86(find_pure_symbol)
      6020    0.008    0.000    0.011    0.000 boolalg.py:149(disjuncts)
     17152    0.008    0.000    0.008    0.000  
symbol.py:60(_hashable_content)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to