#17013: WordDatatype_char
-------------------------+-------------------------------------------------
Reporter: | Owner:
vdelecroix | Status: needs_review
Type: | Milestone: sage-6.4
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Sébastien Labbé
combinatorics | Work issues:
Keywords: words | Commit:
Authors: | a563343267f1690d74275ad3835cdebef8512a19
Vincent Delecroix | Stopgaps:
Report Upstream: N/A |
Branch: |
u/slabbe/17013 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by slabbe):
Here is one benchmark.
BEFORE::
{{{
sage: w = Word([0,-1,2]*100, alphabet=[0,-1,2])
sage: type(w)
<class 'sage.combinat.words.word.FiniteWord_list'>
sage: %timeit w.is_square_free()
1000 loops, best of 3: 417 µs per loop
}}}
AFTER::
{{{
sage: w = Word([0,1,2]*100, alphabet=[0,1,2])
sage: type(w)
<class 'sage.combinat.words.word.FiniteWord_char'>
sage: %timeit w.is_square_free()
100000 loops, best of 3: 6.29 µs per loop
}}}
We should also add here some benchmark about equality test and also
`__getitem__`.
--
Ticket URL: <http://trac.sagemath.org/ticket/17013#comment:4>
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.