• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Undo devours RAM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Undo devours RAM


  • Subject: Re: Multiple Undo devours RAM
  • From: Florent Pillet <email@hidden>
  • Date: Thu, 29 Jan 2004 15:33:08 +0100

You are aware that Mac OS X uses virtual memory, right? So the difference between systematically going to the disk for storing undoable objects and storing them in RAM and having the system page the ram to the disk would probably be minimil from a performance standpoint.

Have you tried an alternative scheme like compressing the data stored on the Undo stack?

Florent

On 28 janv. 04, at 16:05, Erez Anzel wrote:

UNDO STACK ON DISK: Instead of my large Undo stack entries going into RAM, and then into virtual memory (i.e. disk) when RAM gets tight, I propose the opposite as an option. I realize that this is complicated by the fact that dumping items to a file means that pointers have to be converted into something useful when the information is retrieved. Assuming that the user does not Undo nearly as often as they perform other tasks, I'd say that it's better to use RAM for more common tasks, and write my Undo and Redo stacks directly to disk. The stacks could easily grow to hundreds of megabytes. I'd love to see this as an option in Cocoa; I'm not suggesting that I write it myself.

--
Florent Pillet, Code Segment email@hidden
Developer tools and end-user products for Palm OS & Mac OS X
ICQ: 117292463 http://perso.wanadoo.fr/fpillet
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Multiple Undo devours RAM
      • From: Erez Anzel <email@hidden>
References: 
 >Multiple Undo devours RAM (From: Erez Anzel <email@hidden>)
 >Re: Multiple Undo devours RAM (From: Public Look <email@hidden>)
 >Re: Multiple Undo devours RAM (From: Erez Anzel <email@hidden>)

  • Prev by Date: Re: two-part question: stylistic question+joint style
  • Next by Date: Re: Notification redundancy
  • Previous by thread: Re: Multiple Undo devours RAM
  • Next by thread: Re: Multiple Undo devours RAM
  • Index(es):
    • Date
    • Thread