• 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
How turn-off C-run time library memory diagnostics?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How turn-off C-run time library memory diagnostics?


  • Subject: How turn-off C-run time library memory diagnostics?
  • From: "neal olander" <email@hidden>
  • Date: Thu, 04 Aug 2005 22:33:04 -0700

I've got a time-critical application, written in C++, using Project Builder, Mac OS-X.

The speed performance is not that great, especially in the memory management functions free() and malloc(). For instance, a single free() takes over 1,000 microseconds! I'm building my application in Project Builder in the "deployment" mode which uses the maximum -O3 optimization.

I'm starting to think that perhaps I'm linking in (or otherwise using) a debug version of the C run-time library that has lots of error-checking and memory-leak detection logic.

Question: In Mac OS-X (Project Builder) is there a way to turn OFF diagnostic-debug logic in the C run-time library (especially memory leak detection)? I suspect this diagnostic logic may be on, and I need a way to turn it off.

Thanks in advance for any help!

 neal


_______________________________________________ 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
  • Prev by Date: Converting any NSImageRep to a 16 bits NSImageRep
  • Next by Date: Core Data Based Application Bug?
  • Previous by thread: Re: Converting any NSImageRep to a 16 bits NSImageRep
  • Next by thread: RE: How turn-off C-run time library memory diagnostics?
  • Index(es):
    • Date
    • Thread