OSDN Git Service

Speed up the "Project Network Graph" cucumber feature
authorRobert Speicher <rspeicher@gmail.com>
Wed, 22 Aug 2012 02:20:09 +0000 (22:20 -0400)
committerRobert Speicher <rspeicher@gmail.com>
Wed, 22 Aug 2012 02:27:06 +0000 (22:27 -0400)
commit3095483e650ae4fc79ff5012117877e5734b75ee
treef60b4856ec19e7597bf76b220adac8d026febece
parent3784f134f1b2a34ce751bba0caf423d2779e604f
Speed up the "Project Network Graph" cucumber feature

This change involves stubbing out the call to `Grit::Commit.find_all`
and limiting the number of commits to 10 vs. the standard of 650 used by
`Gitlab::GraphCommit.to_graph`.

Prior to this change, this single feature required almost 3 minutes of
running time and over 2 GB of memory on my machine. Now it takes less
than 3 seconds.
features/projects/network.feature
features/step_definitions/project/projects_steps.rb
features/support/env.rb