vaimee / zion

A scalable Thing Description Directory
Apache License 2.0
17 stars 4 forks source link

Better cloning for `td-builder.service.ts` #58

Open relu91 opened 1 year ago

relu91 commented 1 year ago

As introduced by #52, the td-builder.service.ts now use the usual trick of JSON.stringify and parse to clone the TD model and generate a valid Thing Description. Is there a better way to achieve this? Is this really performance critical?

Tracking https://github.com/vaimee/zion/blob/cc5a16a023b112b50d479b55036167243852c71b/src/introduction/td-builder.service.ts#L25-L26