perf: Optimize STL chunk transfer to 1 MB and primitive spatial hashing for instant auto-loading

This commit is contained in:
2026-08-26 00:50:40 +02:00
parent c8f287cb3c
commit 1abd4f74ac
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ class ControlApi:
pass
return None
def read_saved_model_chunk(self, offset, size=196608):
offset, size = int(offset), min(int(size), 196608)
def read_saved_model_chunk(self, offset, size=1048576):
offset, size = int(offset), min(int(size), 1048576)
if offset < 0 or size < 1 or not self.model_cache.is_file():
raise ValueError("Saved model is unavailable")
with self.model_cache.open("rb") as stream: