Skip to content

Instantly share code, notes, and snippets.

@philippeback
Created March 8, 2017 18:44
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippeback/39c63bb5aa26b79098511cdfea4fea7e to your computer and use it in GitHub Desktop.
Save philippeback/39c63bb5aa26b79098511cdfea4fea7e to your computer and use it in GitHub Desktop.
FreeTypeCache cleanUp.
Clipboard startUp: true.
RubEditingState allInstances do: [ :each | each instVarNamed: #undoManager put:nil].
GTPlayBook reset.
EditorFindReplaceDialogWindow cleanUp.
ActiveHand resetClickState; releaseAllFocus.
UITheme current focusIndicator: nil.
40 timesRepeat: [
1 second wait.
World doOneCycle.
].
@udoschneider
Copy link

This gist is a live safer!!! After trying to figure out memory leaks in my code w/o any success this gist brought down my image from 1.5G to comfortable 200M!

@eMaringolo
Copy link

Thanks for it. It didn't shrink my image significantly but made the UI snappier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment