Viewing a response to: @profitgenerator/re-modrzew-re-profitgenerator-python-code-speed-improvement-20171121t224317200z
...and then you'd have to `eval` that long string to get an array which would be even slower, not to say completely unsafe 😉 If your calculation takes 2 hours, then I'd say replacing `for` loops with manually typed array accesses is not the best place to optimize. Most likely something else takes long to finish. Have you tried [profiling your code](https://docs.python.org/3/library/profile.html)?
author | modrzew |
---|---|
permlink | re-profitgenerator-re-modrzew-re-profitgenerator-python-code-speed-improvement-20171122t005750495z |
category | python |
json_metadata | {"tags":["python"],"links":["https://docs.python.org/3/library/profile.html"],"app":"steemit/0.1"} |
created | 2017-11-22 00:57:51 |
last_update | 2017-11-22 00:57:51 |
depth | 3 |
children | 0 |
last_payout | 2017-11-29 00:57:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 401 |
author_reputation | 512,745,973,730 |
root_title | "Python Code Speed Improvement" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 21,147,682 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dchad | 0 | 0 | 100% |