Add note on # of max threads.

This commit is contained in:
Syoyo Fujita
2018-08-13 17:47:13 +09:00
parent bb3e27d4f3
commit 4924857fd3

View File

@@ -1238,6 +1238,8 @@ typedef struct {
// 3. Do parallel parsing for each line. // 3. Do parallel parsing for each line.
// 4. Reconstruct final mesh data structure. // 4. Reconstruct final mesh data structure.
// Raise # of max threads if you have more CPU cores...
// In 2018, 32 cores are getting common in high-end workstaion PC.
#define kMaxThreads (32) #define kMaxThreads (32)
static inline bool is_line_ending(const char *p, size_t i, size_t end_i) { static inline bool is_line_ending(const char *p, size_t i, size_t end_i) {