Open relu91 opened 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?
td-builder.service.ts
JSON.stringify
parse
Tracking https://github.com/vaimee/zion/blob/cc5a16a023b112b50d479b55036167243852c71b/src/introduction/td-builder.service.ts#L25-L26
As introduced by #52, the
td-builder.service.ts
now use the usual trick ofJSON.stringify
andparse
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