Skip to content

Commit

Permalink
perf: Optimize KeyValuePairLogEvent.to_dict to directly convert `cl…
Browse files Browse the repository at this point in the history
…p::KeyValuePairLogEvent` to `PyDictObject` via CPython APIs. (#90)

Co-authored-by: haiqi96 <[email protected]>
  • Loading branch information
LinZhihao-723 and haiqi96 authored Nov 28, 2024
1 parent 60a998b commit cec9730
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 22 deletions.
4 changes: 4 additions & 0 deletions src/clp_ffi_py/Python.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
// Inform IWYU of the headers that we use that are exported by Python.h
// IWYU pragma: begin_exports
#include <abstract.h>
#include <boolobject.h>
#include <bytesobject.h>
#include <dictobject.h>
#include <floatobject.h>
#include <longobject.h>
#include <longobject.h>
#include <memoryobject.h>
#include <methodobject.h>
Expand All @@ -26,6 +29,7 @@
#include <pymacro.h>
#include <pyport.h>
#include <typeslots.h>
#include <unicodeobject.h>
// IWYU pragma: end_exports
#endif
// clang-format on
Loading

0 comments on commit cec9730

Please sign in to comment.