#10523: Make Weil pairing polynomial time
-------------------------------+--------------------------------------------
Reporter: djao | Owner: somebody
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.6.2
Component: elliptic curves | Keywords: Weil pairing, elliptic curves
Author: David Jao | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by kini):
Great!
By the way, I noticed in your sage-devel thread you mentioned you are
learning how to use Mercurial - so am I, and here's something I've
learned. Rather than committing your changes, exporting the changeset as a
diff, naming it foobar.patch, and uploading it to trac, you can use the mq
extension. (Your patch has a Node ID in it, which leads me to believe you
are not using mq -- if you are, just ignore the rest of this comment...)
First enable it by adding "[extensions]\nmq = " to a relevant hgrc file,
such as ~/.hgrc . Then simply start with the Mercurial repository you want
to patch updated to the latest dev release of sage (4.6.1.rc0 right now, I
think), then make whatever changes, and then run in this case `hg qnew
-UDm "#10523: Remove superpolynomial-time order computation from Weil
pairing" trac_10523_weil_pairing_performance_fix.patch`. This will create
a patch in $(hg root)/.hg/patches with the appropriate filename which you
can just upload directly, as well as committing to the local hg
repository. However, unlike in normal Mercurial, you can then use `hg
qpop` to undo your patch on the actual files in the directory and undo the
commit, and `hg qpush` to redo them. If you want to update your patch, `hg
qpush` it first, then make some changes, and then use `hg qrefresh`. This
will automatically update your patch file (and the commit mq had made to
the repository), which is easier than having to undo and redo normal
Mercurial commits. You can actually create more patches with `hg qnew`
after pushing your first one, which will then be calculated with the first
patch as a base, etc. etc. - run `hg help mq` for more info.
Hope that helps you as much as it helped me.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10523#comment:6>
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.