• 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: How to split a big file ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to split a big file ?


  • Subject: Re: How to split a big file ?
  • From: Michaël Parrot <email@hidden>
  • Date: Tue, 21 Mar 2006 09:54:15 +0100

Hello,

On Mar 20, 2006, at 6:41 PM, Dirk Stegemann wrote:

Am 20.03.2006 um 18:30 schrieb Michaël Parrot:

I would like split file with 10MB (or more) segment.
But, when split 250MB or more datas, OS X swap and use more RAM.
Also, I try it with split command.

The split command isn't working for you?
I never tried it programmatically from within an application using NSTask or similar, but I think that NSTask should create an own process which runs the command.
Therefor, whatever split tries to do, your application's memory usage shouldn't be affected.


Regarding your code:
it seems you're reading all the data before writing it back -- I can image that 'spli' does it a smarter way.


Usually, you'd call split the following way to get 10MB-pieces:

% split -b 10m path/to/input/file path/to/output/file

wheras the output files are named differently with your given name as base name.

Yes, I use split command but the problem is same with my code because when write the data, Mac OS use more of free memory. (No problem to read the data).


(250MB file)
When split file, the free memory 480MB > 80 MB (and no immediate release)
When dupplicate file from finder : 320 > 240 MB (and release after end of copy).


How work the copy from Finder to use small memory and release it just after ?

Thanks,

Michael Parrot


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to split a big file ?
      • From: Camillo Lugaresi <email@hidden>
References: 
 >How to split a big file ? (From: Michaël Parrot <email@hidden>)
 >Re: How to split a big file ? (From: Dirk Stegemann <email@hidden>)

  • Prev by Date: Re: Intercepting messages
  • Next by Date: Re: PSMTabBarControl isn't added in the app bundle
  • Previous by thread: Re: How to split a big file ?
  • Next by thread: Re: How to split a big file ?
  • Index(es):
    • Date
    • Thread