Skip to content

Conversation

gandrewstone
Copy link

No description provided.

@@ -34,20 +35,14 @@ void AddScriptCheckThreads(int i, CCheckQueue<CScriptCheck>* pqueue)

void AddAllScriptCheckQueuesAndThreads(int nScriptCheckThreads, boost::thread_group* threadGroup)
{
vector<CCheckQueue<CScriptCheck>* > vScriptCheckQueue;
Copy link
Author

@gandrewstone gandrewstone Feb 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not really an important change because this code is not performance related. But the vector STL object is going to malloc and free each time you push_back (or over-malloc). But since this use is a known constant size array, this really good time to use a traditional c array. Personally, I always prefer to use the simplest tool that gets the job done, even though in this case it doesn't really matter from a performance perspective. So this change is not very important to me; take it or leave it, your preference.

Copy link
Owner

@ptschip ptschip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I compiled and tested these changes and they look good. I'll merge them in.

@ptschip ptschip merged commit 24cf193 into ptschip:dev_parallel Feb 10, 2017
ptschip pushed a commit that referenced this pull request May 10, 2017
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.

2 participants