Implemented ScanCopyUnescapeString optimization

Some performance issues to be fixed
This commit is contained in:
Milo Yip
2016-01-22 12:18:05 +08:00
3 changed files with 104 additions and 8 deletions

View File

@@ -14,6 +14,14 @@
#include "unittest.h"
// __SSE2__ and __SSE4_2__ are recognized by gcc, clang, and the Intel compiler.
// We use -march=native with gmake to enable -msse2 and -msse4.2, if supported.
#if defined(__SSE4_2__)
# define RAPIDJSON_SSE42
#elif defined(__SSE2__)
# define RAPIDJSON_SSE2
#endif
#include "rapidjson/reader.h"
#include "rapidjson/internal/dtoa.h"
#include "rapidjson/internal/itoa.h"