RNA: ignore some large arrays in override code #107196

Closed
Jacques Lucke wants to merge 4 commits from JacquesLucke/blender:override-ignore-large-arrays into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This speeds up saving 070_0100.anim.blend from the Heist project from ~3s to ~300ms by adding PROPOVERRIDE_IGNORE in a few places. It's not completely obvious to me when PROPOVERRIDE_IGNORE should be used and when it shouldn't. Given that the same is done for meshes already, it seems correct.

I found this while investigating the performance difference between saving a MemFile on disk vs. storing the full file. Did this for #106903.

This speeds up saving `070_0100.anim.blend` from the Heist project from ~3s to ~300ms by adding `PROPOVERRIDE_IGNORE` in a few places. It's not completely obvious to me when `PROPOVERRIDE_IGNORE` should be used and when it shouldn't. Given that the same is done for meshes already, it seems correct. I found this while investigating the performance difference between saving a `MemFile` on disk vs. storing the full file. Did this for #106903.
Jacques Lucke added 1 commit 2023-04-20 22:06:01 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
bec4a1fed6
add PROPOVERRIDE_IGNORE for a couple of arrays
Jacques Lucke requested review from Bastien Montagne 2023-04-20 22:06:38 +02:00
Jacques Lucke requested review from Hans Goudey 2023-04-20 22:06:38 +02:00
Author
Member

@blender-bot build

@blender-bot build
Hans Goudey approved these changes 2023-04-20 22:11:09 +02:00
Hans Goudey left a comment
Member

Maybe worth adding this to rna_def_edge_creases, rna_def_vertex_creases, rna_def_skin_vertices, rna_def_mproperties, rna_def_MPropCol, rna_def_mloopcol, rna_def_mloopuv, rna_def_mvert?

Maybe worth adding this to `rna_def_edge_creases`, `rna_def_vertex_creases`, `rna_def_skin_vertices`, `rna_def_mproperties`, `rna_def_MPropCol`, `rna_def_mloopcol`, `rna_def_mloopuv`, `rna_def_mvert`?
Hans Goudey added this to the Core project 2023-04-20 22:11:26 +02:00
Jacques Lucke added 1 commit 2023-04-20 22:21:16 +02:00
Jacques Lucke added 2 commits 2023-04-20 22:30:02 +02:00
Author
Member

@blender-bot build

@blender-bot build
Bastien Montagne approved these changes 2023-04-21 09:55:22 +02:00

I think all geometry attributes can be ignored yes, for meshes we do not even save geometry at all in liboverrides anyway (to save disk space). We may want to do it for other geometries too if/when they get heavy (PointCloud e.g. could be a good candidate, maybe curves when used as hair?).

I think all geometry attributes can be ignored yes, for meshes we do not even save geometry at all in liboverrides anyway (to save disk space). We may want to do it for other geometries too if/when they get heavy (PointCloud e.g. could be a good candidate, maybe curves when used as hair?).
Bastien Montagne closed this pull request 2023-04-21 10:42:49 +02:00
Bastien Montagne removed this from the Core project 2023-07-03 12:46:37 +02:00
All checks were successful
buildbot/vexp-code-patch-coordinator Build done.

Pull request closed

Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107196
No description provided.