mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Profile: Optimize loading with reduce size of loaded pid set.
This commit is contained in:
1 parent
cc5d86328b
commit
fc7d732e0a
1 file changed
+5
@@ -276,7 +276,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||||||
None
|
None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
loaded_save = data['loaded_pid']
|
||||||
|
data['loaded_pid'] = set()
|
||||||
data["profile"] = profile
|
data["profile"] = profile
|
||||||
|
|
||||||
profile._points = list(
|
profile._points = list(
|
||||||
map(
|
map(
|
||||||
lambda ip: ip[1],
|
lambda ip: ip[1],
|
||||||
@@ -287,6 +290,8 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
data['loaded_pid'] = loaded_save
|
||||||
|
|
||||||
loaded.add(pid)
|
loaded.add(pid)
|
||||||
new.append(profile)
|
new.append(profile)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user