Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Vinnie Falco vinniefalco

🏠
Working from home
Block or report user

Report or block vinniefalco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7cc09cfb41460e8cc70bf9ec34202d5e
/** Return true if two values are equal.
A lexicographical comparison is performed
to determine if the two strings are equal.
*/
template<class T
, class = typename std::enable_if<
std::is_convertible<
T const&, string_view>::value
>::type
View gist:cd01e0704923a55a9ad6b30efbd961e0
32-bit MSVC
Parse File 1 array.json (609414 bytes)
boost(default): 806ms
boost(default): 806ms
boost(default): 801ms
boost(default): 798ms
boost(default): 800ms
boost(block): 776ms
boost(block): 774ms
View gist:cc7c85aad6f5f6b352dd3870bb90a780
Parse File 1 array.json (609414 bytes)
boost(default): 806ms
boost(default): 806ms
boost(default): 801ms
boost(default): 798ms
boost(default): 800ms
boost(block): 776ms
boost(block): 774ms
boost(block): 776ms
boost(block): 776ms
View gist:0b270a5c2193d3cde9273671701add11
32-bit
Parse File 1 array.json (609414 bytes)
boost(default): 801ms
boost(default): 799ms
boost(default): 798ms
boost(default): 793ms
boost(default): 793ms
boost(block): 774ms
boost(block): 774ms
View gist:7641f15f80d9197ef4ad5f78d12f56e1
Parse File 1 array.json (609414 bytes)
boost(default): 472ms
boost(default): 419ms
boost(default): 420ms
boost(default): 491ms
boost(default): 498ms
boost(block): 478ms
boost(block): 479ms
boost(block): 478ms
boost(block): 480ms
View gist:8a07bd2cb76be2f062774308fec4905b
Parse File 1 array.json (609414 bytes)
boost(default): 435ms
boost(default): 417ms
boost(default): 417ms
boost(default): 487ms
boost(default): 498ms
boost(block): 478ms
boost(block): 479ms
boost(block): 478ms
boost(block): 479ms
View gist:3da4dad0602e3ed084d98a0d6dbbe1de
Parse File 1 array.json (609414 bytes)
boost(default): 516ms
boost(default): 518ms
boost(default): 517ms
boost(default): 526ms
boost(default): 536ms
boost(block): 518ms
boost(block): 516ms
boost(block): 517ms
boost(block): 516ms
View gist:58777dc0cd2c0c042340a44215907e52
#ifndef BOOST_NO_EXCEPTIONS
try
{
#endif
string_impl tmp(t->size, sp);
std::memcpy(
tmp.data(),
data(),
size());
destroy(sp);
View gist:f3f6f158014e8ba17c6022ebdbd18248
class string_impl
{
struct table
{
std::uint32_t size;
std::uint32_t capacity;
};
struct sbo
{
View gist:c54dc01621d175602bda9f0d3e165292
sizeof(value)==32 no SBO
Parse File 1 array.json (609414 bytes)
boost(block): 535ms
boost(block): 488ms
boost(block): 470ms
boost(block): 486ms
boost(block): 482ms
Parse File 2 arrays.json (1461524 bytes)
You can’t perform that action at this time.