Bug 478715

Summary: Adding colors to palette spikes hard drive use, indicating data being written, that is completely unnecessary.
Product: [Applications] krita Reporter: Kia <dr.information>
Component: Color modelsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kia 2023-12-19 09:22:44 UTC
SUMMARY
When I add a color to the palette, the hard drive use, and for some reason network spikes briefly. This causes a short lag and and unnecessary wear and tare on the hardware if my assumption is true.
The color palette has save/load options and the data is small enough that we can keep it in ram until the user decides to save the document or the palette. Fixing this will make the program feel more responsive and enjoyable.

STEPS TO REPRODUCE
1. Select a color
2. Add it to the palette
3. Listen to the hard drive (in case of mechanic ones) or check the task manager

OBSERVED RESULT
Lag when adding colors to the palette

EXPECTED RESULT
Smooth operation
Comment 1 Bug Janitor Service 2024-10-25 13:44:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2260
Comment 2 Halla Rempt 2025-04-10 09:57:46 UTC
Git commit 538e4031d2c3ed25c9b265fe9faf9caaabe455e5 by Halla Rempt, on behalf of Mathias Wein.
Committed on 10/04/2025 at 08:35.
Pushed by rempt into branch 'mr/2260'.

Color Sampler Tool: Don't save palette on each added entry

Palette widgets are now able to pick up the changes automatically
without saving a new version.

M  +0    -5    plugins/tools/basictools/kis_tool_colorsampler.cc

https://invent.kde.org/graphics/krita/-/commit/538e4031d2c3ed25c9b265fe9faf9caaabe455e5