Skip to content

Instantly share code, notes, and snippets.

View vinniefalco's full-sized avatar
🏠
Working from home

Vinnie Falco vinniefalco

🏠
Working from home
View GitHub Profile
Old parse_number
Parse integers-32.json,msvc x64/sse2,boost (pool),2000,7984,331
Parse integers-32.json,msvc x64/sse2,boost (pool),1364,5224,345
Parse integers-32.json,msvc x64/sse2,boost (pool),1365,5222,345
Parse integers-32.json,msvc x64/sse2,boost (pool),1365,5230,345
Parse integers-32.json,msvc x64/sse2,boost (pool),1365,5230,345
Parse integers-32.json,msvc x64/sse2,boost (pool),1365,5244,344
Parse integers-64.json,msvc x64/sse2,boost (pool),5000,5926,490
Parse integers-64.json,msvc x64/sse2,boost (pool),4410,5221,491
Parse integers-64.json,msvc x64/sse2,boost (pool),4431,5245,491
11>C:\Users\vinnie\src\boost\libs\json\include\boost/json/detail/value_from.hpp(37,1): warning C4127: conditional expression is constant (compiling source file C:\Users\vinnie\src\boost\libs\json\test\value_from.cpp)
11>C:\Users\vinnie\src\boost\libs\json\include\boost/json/detail/value_from.hpp(37,1): message : consider using 'if constexpr' statement instead (compiling source file C:\Users\vinnie\src\boost\libs\json\test\value_from.cpp)
11>C:\Users\vinnie\src\boost\libs\json\include\boost/json/detail/value_from.hpp(75): message : see reference to function template instantiation 'void boost::json::detail::tuple_to_array<4,0,std::tuple<int,boost::json::string,int,bool>&>(T,boost::json::array &)' being compiled
11> with
11> [
11> T=std::tuple<int,boost::json::string,int,bool> &
11> ] (compiling source file C:\Users\vinnie\src\boost\libs\json\test\value_from.cpp)
11>C:\Users\vinnie\src\boost\libs\json\include\boost/json/detail/value_from.hpp(126): message : see reference to functi
/** A shared buffer sequence of length 1.
This is a reference counted, copyable handle to a constant
buffer sequence of length one. It is used for broadcasting.
The originating buffers are copied upon construction.
*/
class message
{
struct impl
{
branch: develop
Parse array.json,msvc x64/sse2,boost (pool),244
Parse canada.json,msvc x64/sse2,boost (pool),320
Parse citm_catalog.json,msvc x64/sse2,boost (pool),452
Parse citm_catalog_nws.json,msvc x64/sse2,boost (pool),158
Parse integers-32.json,msvc x64/sse2,boost (pool),347
Parse integers-64.json,msvc x64/sse2,boost (pool),492
Parse random.json,msvc x64/sse2,boost (pool),251
Parse small.json,msvc x64/sse2,boost (pool),265
Parse strings.json,msvc x64/sse2,boost (pool),4781
branch: add-comments
Parse array.json,clang x64/sse2,boost (pool),280
Parse canada.json,clang x64/sse2,boost (pool),374
Parse citm_catalog.json,clang x64/sse2,boost (pool),550
Parse citm_catalog_nws.json,clang x64/sse2,boost (pool),196
Parse integers-32.json,clang x64/sse2,boost (pool),418
Parse integers-64.json,clang x64/sse2,boost (pool),574
Parse random.json,clang x64/sse2,boost (pool),324
Parse small.json,clang x64/sse2,boost (pool),324
Parse strings.json,clang x64/sse2,boost (pool),5244
void parse_white_and_comments()
{
for(;;)
{
maybe_skip_white();
if(*cs != '/')
return;
++cs;
do_wht1:
// Create the server.
auto server = lounge::server::create();
// (Add user-defined services)
// Start the services.
server->start();
// Run configuration RPC commands
server->do_rpc(
template<class T, class = void>
struct is_buffers_generator
: std::false_type
{
};
template<class T, class = void>
struct is_buffers_generator<T, detail::void_t<
std::is_constructible<
typename T::const_buffers_type, decltype(
// VFALCO temporarily needed until
// boost::string_view supports std::hash
struct hash
{
std::size_t
operator()(
string_view s) const
{
return (*this)(s,
std::integral_constant<bool,
vinnie@VF-Corsair MINGW64 ~/src/lounge/bin64 (develop)
$ cmake ..
-- The CXX compiler identification is MSVC 19.25.28611.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost 1.73.0 at C:/Users/vinnie/src/boost/stage/lib/cmake/Boost-1.73.0