Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped up to C++17 and enabled /MP for all projects #451

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

123jimin
Copy link

Compile time on a 6-core 12-thread CPU (very non-scientific; ran each twice in a row and used later value to reduce deviations caused by file caching):

  • Debug: 1m 23s to 37s
  • Release: 1m 50s to 55s

Sadly, CI doesn't seem to be affected by this.

Forgot to add /MP for test projects but it doesn't matter a lot.

@@ -14,9 +14,7 @@ class Buffer : public Vector<uint8>, Unique
Buffer(Buffer&& rhs);
Buffer& operator=(Buffer&& rhs);
// Creates a new buffer from a string, without the terminating null character
Buffer(const char* string);
// Creates a new buffer with an initial size
Buffer(size_t initialSize);
Copy link
Author

@123jimin 123jimin Apr 12, 2021

Choose a reason for hiding this comment

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

msvc complains that this is indistinguishable from the constructor from std::vector. Since they do the same job (sans initialization for this Buffer::Buffer(size_t)), I just removed this constructor.

@Drewol Drewol merged commit 778d92d into Drewol:develop Apr 12, 2021
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