Move index JSON read to Rust for GIL-released parsing (serde_json)

This commit is contained in:
2026-02-19 22:43:28 +08:00
parent ff287cf67b
commit 082a7fbcd1
4 changed files with 77 additions and 0 deletions

View File

@@ -1905,6 +1905,8 @@ class ObjectStorage:
def _read_index_entry(self, bucket_name: str, key: Path) -> Optional[Dict[str, Any]]:
index_path, entry_name = self._index_file_for_key(bucket_name, key)
if _HAS_RUST:
return _rc.read_index_entry(str(index_path), entry_name)
if not index_path.exists():
return None
try: