mirror of https://gitlab.com/pamhyr/pamhyr2
Geometry: Profile: Optimize loading with reduce size of loaded pid set.
parent
cc5d86328b
commit
fc7d732e0a
|
|
@ -276,7 +276,10 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||
None
|
||||
)
|
||||
|
||||
loaded_save = data['loaded_pid']
|
||||
data['loaded_pid'] = set()
|
||||
data["profile"] = profile
|
||||
|
||||
profile._points = list(
|
||||
map(
|
||||
lambda ip: ip[1],
|
||||
|
|
@ -287,6 +290,8 @@ class ProfileXYZ(Profile, SQLSubModel):
|
|||
)
|
||||
)
|
||||
|
||||
data['loaded_pid'] = loaded_save
|
||||
|
||||
loaded.add(pid)
|
||||
new.append(profile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue