• 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
ofstream buffer not working in libc++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ofstream buffer not working in libc++?


  • Subject: ofstream buffer not working in libc++?
  • From: "Mills, Steve" <email@hidden>
  • Date: Wed, 09 Apr 2014 04:33:08 +0000
  • Thread-topic: ofstream buffer not working in libc++?

We use an ofstream to write large files. I found that a larger buffer (32k, set via stream.rdbuf().pubsetbuf(buf, syz)) resulted in better performance than the standard buffer (4k), when we were using libstdc++. Now that we've switched to libc++ so we can use C++11, it seems as if the buffer is not being utilized at all. Performance has slowed considerably, and I don't see the data we stream out ever appear in the buffer. And if I stick with the standard buffer by not calling pubsetbuf, I never see the default buffer get changed either.

Is buffered file writing broken in Xcode 5.1's libc++?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: ofstream buffer not working in libc++?
      • From: Kyle Sluder <email@hidden>
    • Re: ofstream buffer not working in libc++?
      • From: "Mills, Steve" <email@hidden>
  • Prev by Date: Re: I thought void* arithmetic was not allowed
  • Next by Date: Re: Global Search Question
  • Previous by thread: Re: I thought void* arithmetic was not allowed
  • Next by thread: Re: ofstream buffer not working in libc++?
  • Index(es):
    • Date
    • Thread