charmplusplus / charm4py

Parallel Programming with Python and Charm++
https://charm4py.readthedocs.io
Apache License 2.0
290 stars 21 forks source link

reduction.py: some performance optimizations #162

Closed juanjgalvez closed 5 years ago

juanjgalvez commented 5 years ago

This improves performance when passing basic Python data types to reduction calls, for example:

data = 33 self.reduce(callback, data, Reducer.sum)