Hello,
For an article on the custom viewer for geometry, I want to give some metrics.
I would like to compare the size of the native data (TopSolid) with the data sent to Speckle (so the JSON). I don’t find this information on the standard viewer.
@alex In my custom viewer, I can compute the size of the WorldTree (which is also an interesting metric), but I guess it doesn’t store the geometric data, correct?
Thanks
Hi Raphael
Since you mentioned it is for an article, you can do something simple. You can open your browser developer tools and take a look at the network tab. You can filter the requests related to fetching objects and do some simple math, see image below.
Now be aware that this is a simplified experiment. This is the size of the data transferred from the server to the viewer. Which is different than the size of the data stored on the database, for that you would have to go on a rabbit role of running a local server and looking at the storage layer.
Make sure you clean your browsers cache between measurements (perhaps do it from an incognito window)
Good luck on your research!
Hi @vwb Victor,
Thanks a lot, that’s a great idea. I’ve tried to figure out something like this but didn’t get it that way. Sadly I had to send the article yesterday, I’ll see if I’m still allowed to add it.
Best
You are right, the WorldTree will not hold on to geometry data for efficiency purposes.
Like @vwb suggested, the easiest way to get an idea about data size coming in would be through the browser’s dev tools. Alternatively, since you have your own custom viewer, you could compute the size yourself, but it might not be worth the hassle
Cheers
