Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@
## 2026-09-26 - Native Runtime Stringification Optimization
**Learning:** In the native runtime C FFI, generating strings for nested TsValue structures heavily penalized performance by using format! and Vec::join, creating O(N) intermediate heap allocations.
**Action:** Use a recursive builder pattern by passing a mutable &mut String buffer downward and utilizing std::fmt::Write to directly push onto the buffer without intermediate allocations.
## 2024-05-24 - CI formatting issue
**Learning:** cargo fmt needs to run locally before commits to avoid CI formatting errors.
**Action:** Always include a cargo fmt --all step in execution plans before submitting.
2 changes: 1 addition & 1 deletion runtime/native_runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// runtime/native_runtime/src/lib.rs
#![allow(clippy::not_unsafe_ptr_arg_deref, clippy::missing_safety_doc)]

use std::fmt::Write as FmtWrite;
use std::collections::HashMap;
use std::ffi::{CStr, CString};
use std::fmt::Write as FmtWrite;
use std::io::{self, Write};
use std::os::raw::{c_char, c_void};

Expand Down
Loading