Jump to content
You must now use your email address to sign in [click for more info] ×

Size file brush and styles


Recommended Posts

What OS (Mac or Windows) are you using? Have you tried this with the Affinity app open or have you quit it first?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Windows 10 x64 on windows 7 too
Many times I have been in different ways
After removing the brushes or styles, the raster_brushes.propcol file does not even get much bigger,
I reinstalled the applications, and the last update installed and sbarsyval settings, still do not understand why the file becomes only more after removing

 

3.png

2.png

1.png

Link to comment
Share on other sites

  • Staff

Th

On 08/03/2018 at 9:06 AM, Sergo said:

Hi
Why, if you delete for example brush categories, or styles, raster_brushes file.procol or object styles.procol
increases,
Can someone tell me why?

There does seem to be something strange going on with those files when deleting or adding brush categories. I'll do some more testing and feedback to the developers.

Link to comment
Share on other sites

  • Staff

This will be because we apply similar streamlining rules as we do to the Affinity documents.  For speed reasons, we append changes to the file, then only periodically "defrag" the file when it reaches a certain % of dead data.

 

So, if you delete stuff, the file will still grow instead of shrink as we write out a new copy of the main file data, but don't do any housekeeping until it reaches 25% redundancy at which point all the dead bits are removed and the file will shrink.

 

You'd have to delete 1/4 of your brushes (approximately) to cause a streamline, though that is subjective.

 

 

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

This is a commonly used technique, but applications can then invoke the defragmentation on demand (see SQLite Vacuum command).

Do you think of something similar?

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

  • Staff

We have control over when we defrag - and our files are not SQL, so the defragging is our own code.  We just chose to only do it at 25% for these files.  We do it at 33% for Affinity documents.

 

 

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

8 minutes ago, Ben said:

and our files are not SQL, so the defragging is our own code.

 

This was, of course, an example.

 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Did i get it right? In other words: If i have eg. 20 categorys of new brushes, each with nearly the same size of MB, i have to delete at least 5 categorys (=>25%) of thoose to get an effect of shrinking instead growing? It is (in this case) contraproductiv to delete just 4 categories? In this case the whole monolith-file will go fragmented (rise up) and first defragment after this treshold????

 

Or in complete other words: Should i do not care - that file(s) will do its job after critical mass? 

OSX 12.5  / iMac Retina 27" / Radeon Pro 580X / Metall: on! --- WWG1WGA WW!

Link to comment
Share on other sites

32 minutes ago, Polygonius said:

Or in complete other words: Should i do not care - that file(s) will do its job after critical mass? 

Yes, basically. 

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Are you a dev? What makes you sure? And BTW is AP using another place on the HD for storing its stuff, except its app-folder and this library and of course my personal exports to a place i define? 

(I just have adobe bridge (very nice organizer, so should "our" media-brwoser be), but there are maybe 3 GB of adobe files over the whole system - its absolut nasty).

(I have just a small SSD and each MB is valuable;-) 

OSX 12.5  / iMac Retina 27" / Radeon Pro 580X / Metall: on! --- WWG1WGA WW!

Link to comment
Share on other sites

24 minutes ago, Polygonius said:

What makes you sure?

Because Ben said this is the way it works.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

  • 1 year later...
On 3/12/2018 at 1:38 PM, Ben said:

We have control over when we defrag - and our files are not SQL, so the defragging is our own code.  We just chose to only do it at 25% for these files.  We do it at 33% for Affinity documents.

25% is a bit high for a fragmentation threshold, isn't it? My raster_brushes.propcol is a 3GB file even after deleting quite a few brushes. That is perhaps 600 - 700MB of wasted space right there. Foverever if the user doesn't add or remove brushes anymore. Could hurt on laptops with smaller SSD's. Perhaps you should trigger the defrag monthly as well. 

  • "The user interface is supposed to work for me - I am not supposed to work for the user interface."
  • Computer-, operating system- and software agnostic; I am a result oriented professional. Look for a fanboy somewhere else.
  • “When a wise man points at the moon the imbecile examines the finger.” ― Confucius
  • Not an Affinity user og forum user anymore. The software continued to disappoint and not deliver.
Link to comment
Share on other sites

6 hours ago, Jowday said:

Perhaps you should trigger the defrag monthly as well. 

Yes, or on demand, as I suggested previously, so the user could compress the files as needed (for example, before sending them to a work partner, customer, etc.)

 

This is the case with browser caches (such as FastStone Viewer), which it creates for faster previewing. The user then cleans the cache (unnecessary thumbnails) and reduces it.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

12 hours ago, Pšenda said:

Yes, or on demand, as I suggested previously, so the user could compress the files as needed (for example, before sending them to a work partner, customer, etc.

Yes also... not or. :) If you don't understand the issue the service should still run scheduled.

An "optimize" button in the settings could supplement it.

  • "The user interface is supposed to work for me - I am not supposed to work for the user interface."
  • Computer-, operating system- and software agnostic; I am a result oriented professional. Look for a fanboy somewhere else.
  • “When a wise man points at the moon the imbecile examines the finger.” ― Confucius
  • Not an Affinity user og forum user anymore. The software continued to disappoint and not deliver.
Link to comment
Share on other sites

and... why not sort the brushes ALPHABETICALLY on that occasion... hint hint!!!

  • "The user interface is supposed to work for me - I am not supposed to work for the user interface."
  • Computer-, operating system- and software agnostic; I am a result oriented professional. Look for a fanboy somewhere else.
  • “When a wise man points at the moon the imbecile examines the finger.” ― Confucius
  • Not an Affinity user og forum user anymore. The software continued to disappoint and not deliver.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.