From 08bd0b86f69fb490e91f5d8f7bd96c4da4108592 Mon Sep 17 00:00:00 2001 From: davidlion Date: Mon, 3 Jun 2024 23:18:45 -0400 Subject: [PATCH] add reserve call for serializer --- cpp/src/ffi_go/ir/serializer.cpp | 1 + lib/libclp_ffi_linux_amd64.a | Bin 328798 -> 331374 bytes 2 files changed, 1 insertion(+) diff --git a/cpp/src/ffi_go/ir/serializer.cpp b/cpp/src/ffi_go/ir/serializer.cpp index d938dd1..69ffe62 100644 --- a/cpp/src/ffi_go/ir/serializer.cpp +++ b/cpp/src/ffi_go/ir/serializer.cpp @@ -98,6 +98,7 @@ auto serialize_log_event( } Serializer* serializer{static_cast(ir_serializer)}; serializer->m_ir_buf.clear(); + serializer->reserve(log_message.m_size); bool success{false}; if constexpr (std::is_same_v) { diff --git a/lib/libclp_ffi_linux_amd64.a b/lib/libclp_ffi_linux_amd64.a index 82aca71f701b999f014bc65dfe87919345c175bd..87ec7560a347997a761e2dcb1f3dc00c02f1182f 100644 GIT binary patch delta 3155 zcmc&#Yitx%6rP!#ZFgyz*%rFHU1PV62DcL1UC`1ZX*%6v?!q+Glt)mo1=1!MDobCA zHEv70u(xZW$)J}X#`KR7V^oaMDn2L$TL?lQK`K9Z_@oPnEyPNdx}G~bTLuzLjETL; z%)R$KzVn@P@0mFtntSc_xd)8AXk?ycbdR#N`r+0>epeyS!o$I1=q}{>ec$tWk1fn2 zyC-;$)yhndB6U^72+Zv6tV=xN0%DuNz%bGpX|=RUTDeNbUzMZQtFF>ukJuJr83uJo znLa$_!xKJy8sU-$O$eVrVJQmVTgtUxO z+Hx3HGB$|LHZ=l5u&ajGJ5tFLzTGP=d2Eo{;fn z8DCPlwE_DtfE6H85-yZIi0~=~;iV?jder6Vd3wFHPFgQLBUK!!jwetWjEaHK`>}%5 zIS_js3e%VhT*c6vAobw^uq}bqa1^!nvtnouwbd15j#?9h57Q%n64FYFZRaSF;BW&f zEf}nKfC{QMqGpad{H)4XO&Z}OIe?oik&ph0M%6%+>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