• 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: Dirk Stegemann <email@hidden>
  • Date: Mon, 20 Mar 2006 19:41:42 +0200

Hello,


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.


Best regards, Dirk Stegemann



_______________________________________________
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: Michaël Parrot <email@hidden>
References: 
 >How to split a big file ? (From: Michaël Parrot <email@hidden>)

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