| 1 | initial version |
I'm seeing int(s) take about 1.5ms, which doesn't seem that slow, and is about 500x faster than str(n): http://aleph.sagemath.org/?q=3a483609-1c61-490a-bfa7-07dfe2fc484d
| 2 | No.2 Revision |
I'm seeing int(s) take about 1.5ms, which doesn't seem that slow, and is about 500x faster than str(n): http://aleph.sagemath.org/?q=3a483609-1c61-490a-bfa7-07dfe2fc484d
Wait, there is a big problem in my timing code.
| 3 | No.3 Revision |
I'm seeing int(s) take about 1.5ms, which doesn't seem that slow, and a long time, but Integer(s) is about 500x faster than relatively quick: http://aleph.sagemath.org/?q=3ddbbfe6-0640-4700-bef4-1ead8214737cstr(n): http://aleph.sagemath.org/?q=3a483609-1c61-490a-bfa7-07dfe2fc484d
Wait, there is a big problem in my timing code.
| 4 | No.4 Revision |
I'm seeing int(s) take a long time, but Integer(s) is relatively quick: http://aleph.sagemath.org/?q=3ddbbfe6-0640-4700-bef4-1ead8214737c
On my computer, Sage's Integer(s) talks about half the time that Mathematica's ToExpression[s] takes.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.