perf: Optimize STL chunk transfer to 1 MB and primitive spatial hashing for instant auto-loading
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user