#14102: Nonsymmetric Macdonald Polynomials for all affine types
-------------------------------------+-------------------------------------
       Reporter:  bump               |        Owner:  sage-combinat
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-pending
      Component:  combinatorics      |   Resolution:
       Keywords:  Nonsymmetric       |    Merged in:
  Macdonald polynomials, days40,     |    Reviewers:  Anne Schilling,
  days45, days49, days54             |  Nicolas M. Thiéry, Mark Shimozono,
        Authors:  Nicolas M.         |  Bogdan Ion
  Thiéry, Anne Schilling             |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  7285efe502514618c4e04080de2056c91933a062
  public/combinat/nonsymmetric_macdonald-14102|     Stopgaps:
   Dependencies:  #4327, #14143,     |
  #13589, #10963, #14673, #14610,    |
  #14775, #15931                     |
-------------------------------------+-------------------------------------

Comment (by nthiery):

 Replying to [comment:79 aschilling]:
 > Please change the import in FiniteEnumeratedSets (Travis changed this,
 right?).

 Done!

 For the record, here is the result of a quick benchmark I made out of
 curiosity. For a trivial function, we get a factor of 10 in speed. Of
 course it's not really representative since in our current use case
 the methods are not quite as trivial.

 {{{
 """
 Comparative benchmark between lazy importing and importing inside a method

     sage: from test_lazy_import import f,g
     sage: %timeit f(i)
     1000000 loops, best of 3: 197 ns per loop
     sage: %timeit g(i)
     1000000 loops, best of 3: 1.65 µs per loop
 """
 from sage.misc.lazy_import import lazy_import
 lazy_import('sage.rings.integer', 'Integer', 'LazyInteger')

 def f(i):
     return LazyInteger(i)

 def g(i):
     from sage.rings.integer import Integer
     Integer(i)
 }}}

 Btw: it would be nice if pyflakes knew about `lazy_import`.

--
Ticket URL: <http://trac.sagemath.org/ticket/14102#comment:81>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to