Why is my file so big?!

Hi Nate - it sure looks like all of these oversized objects have Snapshot data.
@lars - am I barking up the wrong tree here? Is there any way to clear Snapshot data?
(Lars may be on vacation at the moment so we may have a pause here)

-Pascal

OK, thanks!

I’ve exported the parts of the model I need, so I’m able to keep working for now… :+1:

OK - my guess of the moment is that you may have had zillions of objects getting Snapshot data - it looks like, for example, all objects get position data even if they are not selected at snapshot time.(unlike NamedPosition which acts on a selection).

-Pascal

If it is plug-in data you should be able to save as with the plug-in data unchecked. @lars is currently away, but I could have a peak today too.

Saving the v2.3dm file as a new file with the plug-in data checkbox unchecked I get:

v2_noplugindata.3dm (28.8 KB)

image

Note that adding a snapshot can quickly grow your filesize, Creating a snapshot means effectively saving your current model inside the file as plug-in data (views, object locations, materials etc)

If you want to retain any other potential plug-in data just delete all snapshots. That should also bring down your filesize.

@nathanletwory The problem is this is global… I don’t think there is any way to clear data from a particular plug-in (?) - that would be useful.

But also, it looks like Snapshot adds data to everything - is that correct?

-Pascal

Correct on all three accounts:

Saving with plug-in data unchecked is global. Plug-in -specific data purge would be very useful ( probably a good idea to log that). And taking a snapshot attaches data to all bits that are snapshotted.

1 Like

Hi Nathan - what I mean is, it looks like, anyway, all objects get snapshot data. For instance positions are restored for all objects that exist when a snapshot is taken, unlike NamedPosition… So the more objects the more file bloat regardless of whether one cares about the positions of most…

-Pascal

That is what I said (:

Hi @nathanletwory, @lars,

Reviving this subject as I am running into similar issues with Snapshots that makes the plugin really unusable.
I have a file where I saved 4 Snapshots with the only box checked was sun positions. I really missed the ability to save sun positions before so was excited to use Snapshots just for that, but the file grew from 37MB to 420MB !!! The file has lots of objects, including some imported CAD plans, so if the above it true Snapshots attached some plugin data to all of them, hence the bloat. Sorry, I can’t sacrifice file size and saving time just to get a few sun positions remembered…

Would you consider optimizing the plugin so it doesn’t attach data to objects unless particular snapshot actually requires per-object info save? I understand materials and positions, etc. need this, but Sun Positions, Camera, Background Color, Layer States and tons of other properties should not need that much space and bloat the file so much… Otherwise we need to stay away from using Snapshots completely :frowning:

If it would be helpful I can upload the sample files for comparison, but if your above diagnosis it is correct, the problem is known.

Thank you,

–jarek

I can confirm.
Having file, let’s say, XMB in size each snapshot was increasing it’s volume with another 0.5X.
4 snapshots pumped up 200MB file to 600MB file.

@Jarek

What Nathan said earlier in this thread is correct:

The idea was to be able to edit a previous taken snapshot and enable/disable the different states a that time.

I just created a model with a bunch of lines and saved 4 snapshots. The file size exploded. Something seems to be very wrong. I will look into it and get back to you.

Hi @lars,

On paper it is a great idea and very ambitious one; I was not aware that Editing Snapshots means being able to access all the data I we have chosen NOT to save with the original Snapshot. Now I see why even with Sun positions only, the giant bloat happens.

It would be great to have the flexible Edit if this was not happening, but with this implemented as-is, given the user unlimited flexibility to edit snapshots and access data they didn’t initially save, makes this approach impossible to work with on larger files, which are pretty much 100% of our projects. I’d rather see ceding some responsibility to the user - if they want to save ALL info, check all boxes, and then restore selected as needed, but if saved only Sun, Camera, or other non-per-object-based data, Edit should not allow to go back on this decision making, and at the same time bloat the files beyond control…

Maybe adding a sticky checkbox at the bottom to Always store all data could leave both options on the table; for those who want unlimited editing at the cost of bloat, and the responsible ones ( :wink: ) who prefer lighter, faster files?

Something like that:

Hope this makes sense. Thanks for looking into it!

–jarek

2 Likes

@Jarek I fixed a bug that caused some of the file size explosion. The fix will be in the next service release. I agree that in addition we will need something like the checkbox you mentioned. That however will most likely be added for Rhino 7.0. I added a bug entry: https://mcneel.myjetbrains.com/youtrack/issue/RH-51718

Hi @lars, thanks - I will test the fix on the daily build and see if this works better for Sun-only and makes the file sizes manageable. Looking forward to more developments of this tool in V7 : )

–jarek

There are more issues with snapshots (just discovered).

  1. when all snapshots are removed files keeps it’s enormous size
  2. when saved as V5 (which doesn’t support snapshots), file is as big as V6 with snapshots
  3. when V5 is opened in V6 is as slow as regular file with snapshots
    :grimacing:
    It takes minutes! to hide the content of the screen (MacBookPro here - one day old!)
  4. save small cuts only 10% of the file volume

As Snapshots is listed as a a plug-in, I might try using SaveAs and unchecking “Save plugin data” in the dialog. Only issue there is that this is not granular, it will kill all plug-in data, not just that from Snapshots.

I did it at last and, indeed, it cut the file size to it’s 40%. I had to sacrifice all render data ( :grimacing: again)

@Piotr thanks for reporting this. I found the problem. There was a bug that did not delete the data attached to objects when deleting a snapshot from the panel. The fix will be in the next service release. In the next service release you can delete all snapshot releated data by running: -_Snapshots _Delete _All _Enter.

cool!
Thanks for looking into it. Took me to much time yesterday to find the half-way solution.
Please keep developing it. It’s a nice feature and, as many suggested, would be lovely to do animation out of it - SketchUP does it so well.