openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.
https://openfisca.org
GNU Affero General Public License v3.0
168 stars 75 forks source link

Possible speedup in Simulation initialisations with large entity counts #1156

Open nikhilwoodruff opened 1 year ago

nikhilwoodruff commented 1 year ago

I'm finding some speed improvements by removing this pattern that appears in a few places (here, for example):

np.array(list(thing_that_is_already_an_array)) -> np.array(thing_that_is_already_an_array)