Re: [squeak-smalltalk/squeak-object-memory] Avoid memory hog in "Interactive Print-it" because of text-undo history (Issue #155)
Christoph Thiede via Squeak-dev <[email protected]> Sun, 21 Jun 2026 09:03:36 -0700
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <squeak-smalltalk/squeak-object-memory/issues/155/[email protected]> |
LinqLover left a comment (squeak-smalltalk/squeak-object-memory#155) Please see Morphic-ct.2212 (inbox). I think that should already be enough? :-) To calculate the number of objects held too long, you can evaluate: ```smalltalk TextEditorCommand allInstances count: [:ea | (ea contentsBefore isText and: [ea contentsBefore hasAttributeThat: [:attr | attr isOblivious ]]) or: [ea contentsAfter isText and: [ea contentsAfter hasAttributeThat: [:attr | attr isOblivious ]]]]. ``` To fix up them: ```smalltalk TextEditorCommand allInstances do: [:ea | (ea contentsBefore isText ifTrue: [ea contentsBefore removeAttributesThat: [:attr | attr isOblivious ]]) . ea contentsAfter isText ifTrue: [ea contentsAfter removeAttributesThat: [:attr | attr isOblivious ]]]. ``` -- Reply to this email directly or view it on GitHub: https://github.com/squeak-smalltalk/squeak-object-memory/issues/155#issuecomment-4762526077 You are receiving this because you are subscribed to this thread. Message ID: <squeak-smalltalk/squeak-object-memory/issues/155/[email protected]> Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]