From: Lothar Scholz Date: 2004-11-24T21:22:49+09:00 Subject: Re: [Ann] Checkpointing Ruby applications (DragonFlyBSD only) Hello Michael, MN> Michael Neumann wrote: >> Lothar Scholz wrote: >> >>> Hello Michael, >>> >>> MN> Checkpoint.checkpoint('dump') do >>> MN> # setup sockets on resume >>> MN> $conn = TCPServer.open('localhost', 9999) >>> MN> end >>> >>> MN> If you resume from "dump" (type 'checkpt -r dump' on command line, or >>> MN> 'ruby -r checkpoint -e 'Checkpoint.resume("dump")'), the block >>> will be >>> MN> executed. >>> >>> Did you any measurements how much time is saved for startup of a >>> complexer ruby program with lots of requires ? Something like >>> FreeRide would be nice. I don't have BSD installed so i can't do it >>> myself. >> >> >> Not yet. I never had timing problems with lots of requires... >> If I can compile freeride (FX...) easily I'll report my results. MN> It's not possible to restore freeride (or any GUI programm, I guess), as MN> X11 is involved... Sockets! Right, but you can set a checkpoint before connecting to X11. Could be nice for large, commercial software. Startup time when you require hundred thousand lines ruby code is not really funny. Lisp/Smalltalk users know what i'm talking about. -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's