Bug 357 : only rebuild sketchbook on "save as" or "rename" of sketch
Last modified: 2007-06-10 10:04




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-05-22 00:28
as i can see from the source ( 115 ) the whole menu-tree for the user-sketchbook is rebuild
everytime i press save / save-as:

Editor.java:
sketchbook.rebuildMenus();

this is really slow on os-x (with large sketchbook) ... maybe there could be a preference option
to skip that step? or the method could just add / change the newly modified sketch.
Additional Comment #1 From fry 2006-05-22 06:35
complain to apple for making a crappy java vm. ;)

it should only be happening when the sketch name changes, i'll look into it.
Additional Comment #2 From fjen 2006-05-22 10:08
true. i think my system (10.4 / 1.25ghz G4) is probably the worst-case scenario at the
moment.

i checked the time it takes to save ... it's between 1-2 secs. so, maybe this is related to the
"tabs getting dirty / need save" bug (#328) since it's doing unneeded saves.

and thanks for looking into it.
Additional Comment #3 From fry 2007-06-10 10:04
fixed this specific issue for 0125.

there's still general slowness with the sketchbook rebuild that needs to be
fixed, that's filed as bug #579.