#13352: Running time improvement of the bitset_len method
---------------------------------+------------------------------------------
       Reporter:  dcoudert       |         Owner:  jason       
           Type:  enhancement    |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.3    
      Component:  misc           |    Resolution:              
       Keywords:                 |   Work issues:              
Report Upstream:  N/A            |     Reviewers:              
        Authors:  David Coudert  |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------

Comment (by leif):

 I'd rather "implement" the functions in C (where you can use the C
 preprocessor and `__builtin_popcount()` if available) and write a thin
 Cython wrapper.

 GCC e.g. chooses efficient machine implementations (probably a single
 instruction), depending on the (configured or specified) target and
 perhaps also further compiler flags.

 Note that GMP has functions like `mpz_popcount()` for `mpz_t`s as
 well.[[BR]]

 ----

 Not sure what the `parallel` refers to ... ;-)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13352#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to