Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
930b8e2b
Commit
930b8e2b
authored
Feb 28, 2019
by
Michael Droettboom
Committed by
GitHub
Feb 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #326 from mdboom/cdecimal
Build the _decimal C module.
parents
8d61da94
1b031347
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
benchmark/benchmarks/large_decimal_list.py
benchmark/benchmarks/large_decimal_list.py
+6
-0
cpython/Setup.local
cpython/Setup.local
+2
-0
cpython/pyconfig.undefs.h
cpython/pyconfig.undefs.h
+3
-0
No files found.
benchmark/benchmarks/large_decimal_list.py
0 → 100644
View file @
930b8e2b
# setup: from decimal import Decimal ; A = [Decimal('2.1') for i in range(1000)] ; B = [Decimal('3.2') for i in range(1000)] # noqa
# run: large_decimal_list(A, B)
def
large_decimal_list
(
A
,
B
):
return
[
a
*
b
for
a
,
b
in
zip
(
A
,
B
)]
cpython/Setup.local
View file @
930b8e2b
...
@@ -49,3 +49,5 @@ _codecs_kr cjkcodecs/_codecs_kr.c
...
@@ -49,3 +49,5 @@ _codecs_kr cjkcodecs/_codecs_kr.c
_codecs_tw cjkcodecs/_codecs_tw.c
_codecs_tw cjkcodecs/_codecs_tw.c
_lsprof _lsprof.c rotatingtree.c
_lsprof _lsprof.c rotatingtree.c
_decimal _decimal/_decimal.c _decimal/libmpdec/basearith.c _decimal/libmpdec/constants.c _decimal/libmpdec/context.c _decimal/libmpdec/convolute.c _decimal/libmpdec/crt.c _decimal/libmpdec/difradix2.c _decimal/libmpdec/fnt.c _decimal/libmpdec/fourstep.c _decimal/libmpdec/io.c _decimal/libmpdec/memory.c _decimal/libmpdec/mpdecimal.c _decimal/libmpdec/numbertheory.c _decimal/libmpdec/sixstep.c _decimal/libmpdec/transpose.c -I$(srcdir)/Modules/_decimal/libmpdec
cpython/pyconfig.undefs.h
View file @
930b8e2b
...
@@ -29,3 +29,6 @@
...
@@ -29,3 +29,6 @@
/* Unsupported functionality */
/* Unsupported functionality */
#undef HAVE_PTHREAD_H
#undef HAVE_PTHREAD_H
#define CONFIG_32
#define ANSI
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment