Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
09a73e9
Established the first successful bt_json benchmark baseline using the…
AbhiPrasad Mar 25, 2026
c8c5c23
Move primitive scalar and float fast paths to the top of _to_bt_safe …
AbhiPrasad Mar 25, 2026
e971c45
Inline primitive scalar handling inside bt_safe_deep_copy and iterate…
AbhiPrasad Mar 25, 2026
8e6c1aa
Use collections.abc.Mapping instead of typing.Mapping in bt_json hot …
AbhiPrasad Mar 25, 2026
ecf26c0
Split bt_safe_deep_copy container handling into dict/list/tuple/set f…
AbhiPrasad Mar 25, 2026
0f97f52
Add exact-type fast paths for the common built-in scalar and containe…
AbhiPrasad Mar 25, 2026
c65c6e6
Replace dataclasses.is_dataclass/dataclasses.fields and exception-dri…
AbhiPrasad Mar 25, 2026
fc1271c
Reordered bt_safe_deep_copy to check exact built-in container types b…
AbhiPrasad Mar 25, 2026
90dbe0d
Cache the lazily imported braintrust.logger special-case types so _to…
AbhiPrasad Mar 25, 2026
8de12d7
Hoist depth+1 out of the inner dict/list/tuple/set recursion loops in…
AbhiPrasad Mar 25, 2026
0f895af
Look up dataclass and pydantic methods on the class instead of the in…
AbhiPrasad Mar 25, 2026
84f6e0d
Use exact-type checks for dict keys in bt_safe_deep_copy so the commo…
AbhiPrasad Mar 25, 2026
4267cd1
Only enter the warning-suppression context for model_dump on actual P…
AbhiPrasad Mar 25, 2026
bfaaa44
Add an exact-dict scalar-prefix fast path in bt_safe_deep_copy: scala…
AbhiPrasad Mar 25, 2026
d91864c
Reorder the hottest exact-type scalar checks around the observed bt_j…
AbhiPrasad Mar 25, 2026
b920671
Make the exact-dict scalar-prefix fast path optimistic for exact-stri…
AbhiPrasad Mar 25, 2026
82ef812
Delay exact-dict visited-set insertion until the first child that act…
AbhiPrasad Mar 25, 2026
45f1df5
Route common non-slotted dataclass instances through bt_safe_deep_cop…
AbhiPrasad Mar 25, 2026
c69d1ee
Use math.isfinite as the hot finite-float fast path in _to_bt_safe, b…
AbhiPrasad Mar 25, 2026
f7ff50a
Move dataclass/model-dump/dict probing ahead of the Braintrust specia…
AbhiPrasad Mar 25, 2026
4385aeb
Special-case exact dict elements inside the exact list fast path so t…
AbhiPrasad Mar 25, 2026
7c45cc6
Delay exact-dict visited-set membership/insertion until the first chi…
AbhiPrasad Mar 25, 2026
450d2be
Flip the exact-list branch to make exact dict elements the direct hot…
AbhiPrasad Mar 25, 2026
89a4583
Move the exact built-in container branches ahead of the exact scalar/…
AbhiPrasad Mar 25, 2026
0c76d33
Move dataclass/model-dump/dict probing ahead of the subclass scalar f…
AbhiPrasad Mar 25, 2026
78d9836
Switch visited-set cleanup from discard() to remove() in bt_safe_deep…
AbhiPrasad Mar 25, 2026
aaadddc
Add an early isinstance(v, str) fast path in _to_bt_safe ahead of dat…
AbhiPrasad Mar 25, 2026
ea3166e
Inline exact scalar and finite-float handling for non-dict elements i…
AbhiPrasad Mar 25, 2026
8ccb4a2
Compute type(value) once per exact-list element and reuse it for the …
AbhiPrasad Mar 25, 2026
faab97c
Split the exact-dict and list-of-dicts teardown into a true two-phase…
AbhiPrasad Mar 25, 2026
2f5b82f
Apply the same two-phase visited-set teardown to exact lists: delay a…
AbhiPrasad Mar 25, 2026
469bffa
log
AbhiPrasad Mar 25, 2026
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
1 change: 1 addition & 0 deletions autoresearch.ideas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Extract a shared recursive container sanitizer for `_to_bt_safe` model outputs (especially non-Pydantic `model_dump`/`dict` adapters) so nested `dict`/`list` fields can avoid `bt_dumps()`/`bt_loads()` roundtrips without regressing the already-optimized `bt_safe_deep_copy()` hot path.
Loading
Loading