Skip to content

Speedup code by moving things out of loops#22

Merged
leouieda merged 6 commits into
masterfrom
speedup
Aug 11, 2014
Merged

Speedup code by moving things out of loops#22
leouieda merged 6 commits into
masterfrom
speedup

Conversation

@leouieda

Copy link
Copy Markdown
Owner

There were a lot of trig functions being called inside loops. I moved some of them out of the loops for some speedups.

  • Benchmark
  • All tests pass
  • Changelog entry
  • Can be merged

@leouieda

Copy link
Copy Markdown
Owner Author

Ran the benchmark (master | speedup):

Computer specs           |  Computer specs
model name  : Intel(R)       |  model name  : Intel(R)
MemTotal:    3950824 kB  |  MemTotal:    3950824 kB
                 |  
Time spent on potential:     |  Time spent on potential:
4.02user 0.00system 0:04.03  |  2.02user 0.00system 0:02.03
0inputs+208outputs (0major+  |  0inputs+208outputs (0major+
                 |  
Time spent on gz:        |  Time spent on gz:
11.66user 0.00system 0:11.6  |  9.04user 0.00system 0:09.05
0inputs+208outputs (0major+  |  0inputs+208outputs (0major+
                 |  
Time spent on gzz:       |  Time spent on gzz:
49.16user 0.03system 0:49.2  |  39.59user 0.02system 0:39.6
0inputs+208outputs (0major+  |  0inputs+208outputs (0major+

leouieda added a commit that referenced this pull request Aug 11, 2014
Speedup code by moving things out of loops
@leouieda leouieda merged commit 784d57b into master Aug 11, 2014
@leouieda leouieda deleted the speedup branch November 20, 2014 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant