Skip to content

Commit 0444fb8

Browse files
yannhamekump
andauthored
doc: improve comment wording
Co-authored-by: Edmund Kump <edmund.kump@datadoghq.com>
1 parent df0a6f7 commit 0444fb8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • libdd-trace-utils/src/change_buffer

libdd-trace-utils/src/change_buffer/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Change buffer.
22
//!
33
//! A change buffer is a contiguous shared memory area between libdatadog and an external runtime.
4-
//! In order to amortize the cost of crossing the FFI when using native spans, the runtime write
5-
//! events in the change buffer instead many times and only flush it by batch, where the call to
6-
//! libdatadog happens. Libdatadog processes the change buffer and reconstruct the corresponding
7-
//! spans.
4+
//! In order to amortize the cost of crossing the FFI when using native spans, the runtime writes
5+
//! events into the change buffer instead of calling libdatadog many times, and only flushes by
6+
//! batch — that flush is where the call to libdatadog happens. Libdatadog then processes the change
7+
//! buffer and reconstructs the corresponding spans.
88
//!
99
//! The change buffer is currently designed and used for dd-trace-js, but the idea could be extended
1010
//! to other runtime where the FFI cost is high.

0 commit comments

Comments
 (0)