¡@

Home 

2014/10/15 ¤U¤È 10:12:32

iphone Programming Glossary: performance

Use CoreData or SQLite on iPhone? [closed]

http://stackoverflow.com/questions/1318467/use-coredata-or-sqlite-on-iphone

a common question here Core Data vs. SQLite for SQL experienced developers Core Data vs Sqlite and performance Core Data vs sqlite3 is it worth using core data for a simple sqlite app on the iphone with one table.. models. You get undo redo support almost for free with it. It also provides some very significant performance benefits particularly on the iPhone. Even though it seems counterintuitive given how much overhead you'd.. given how much overhead you'd think the framework has in most cases you can beat the performance of hand tuned SQLite using Core Data. On the iPhone it does a great job of batching fetches to minimize..

Tricks for improving iPhone UITableView scrolling performance?

http://stackoverflow.com/questions/1352479/tricks-for-improving-iphone-uitableview-scrolling-performance

for improving iPhone UITableView scrolling performance I have a uitableview that loads fairly large images in each cell and the cell heights vary depending.. large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent but can sometimes be jerky. I found these tips I found on the FieryRobot blog glassy scrolling.. glassy scrolling with uitableview Does anyone have any tips for improving uitableview scrolling performance iphone uitableview scrolling uiimage share improve this question Cache the height of the rows the..

Core Data - Storing Images (iPhone)

http://stackoverflow.com/questions/2090028/core-data-storing-images-iphone

I am unsure how to practically store the image and whether this is potentially fatal in terms of performance. I would be grateful for any advice on the approach and pitfalls from anyone who has attempted this... address whatever . 1 mb store in a separate entity on the other end of a relationship to avoid performance issues. 1 mb store on disk and reference the path in your Core Data store. You can use the transformable..

Comparison of JSON Parser for Objective-C (JSON Framework, YAJL, TouchJSON, etc)

http://stackoverflow.com/questions/2256625/comparison-of-json-parser-for-objective-c-json-framework-yajl-touchjson-etc

used. Touch JSON parses NSData instead of NSString. In addition as far as I tested the result of performance comparison is as follows fast YAJL JSON Framework Touch JSON slow . If you know pros and cons of these..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

about drawing PDF's. Yes you can render PDF's very easily with a UIWebView but this cant give the performance and functionality that you would expect from a good PDF viewer. You can draw a PDF page to a CALayer.. from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed here EDIT Some Tips Credit Luke Mcneice..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

over XPathQuery which is another wrapper this option probably is not the most efficient. If performance is an issue in your project I recommend to code your own lightweight solution based on hpple and xpathquery..

What's the easiest way to resize/optimize an image size with the iPhone SDK?

http://stackoverflow.com/questions/612131/whats-the-easiest-way-to-resize-optimize-an-image-size-with-the-iphone-sdk

its original size I'm planning on resizing the image to something a bit smaller to save on space performance. Also some of those images are JPEGs and they are not saved as the usual 60 quality setting. How can..

Unable to process application info.plist validation at this time due to a general error (1095)

http://stackoverflow.com/questions/8353049/unable-to-process-application-info-plist-validation-at-this-time-due-to-a-genera

Having trouble adding objects to NSMutableArray in Objective C

http://stackoverflow.com/questions/851926/having-trouble-adding-objects-to-nsmutablearray-in-objective-c

cardIdObject release So this code executes and does not seem to leak according to the Leaks performance tool . However when stepping through the code at no point does CardIdObject appear in viewedCardsArray..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

during ObjC or C exception throws in ObjC code but this is at the cost of both time and space performance. This is yet another in a long list of reasons to minimize your use of ObjC . ARC will not work at all..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

FUD I see a lot of people saying imageNamed is bad but equal numbers of people saying the performance is good especially when rendering UITableView s. See this SO question for example or this article on..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

requestURL encoding NSASCIIStringEncoding error &error EDIT Both these methods take a performance hit however since they do the request twice. You can get around this by grabbing the content from a..

Use CoreData or SQLite on iPhone? [closed]

http://stackoverflow.com/questions/1318467/use-coredata-or-sqlite-on-iphone

sqlite core data share improve this question This is a common question here Core Data vs. SQLite for SQL experienced developers Core Data vs Sqlite and performance Core Data vs sqlite3 is it worth using core data for a simple sqlite app on the iphone with one table and no relationships or complicated subtable views In summary.. greatly simplify your code particularly for complex object models. You get undo redo support almost for free with it. It also provides some very significant performance benefits particularly on the iPhone. Even though it seems counterintuitive given how much overhead you'd think the framework has in most cases you can beat the.. particularly on the iPhone. Even though it seems counterintuitive given how much overhead you'd think the framework has in most cases you can beat the performance of hand tuned SQLite using Core Data. On the iPhone it does a great job of batching fetches to minimize memory usage. The one downside as pointed out is that this..

Tricks for improving iPhone UITableView scrolling performance?

http://stackoverflow.com/questions/1352479/tricks-for-improving-iphone-uitableview-scrolling-performance

for improving iPhone UITableView scrolling performance I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent.. performance I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent but can sometimes be jerky. I found these tips I found on the FieryRobot blog glassy scrolling with uitableview more glassy scrolling with uitableview.. on the FieryRobot blog glassy scrolling with uitableview more glassy scrolling with uitableview Does anyone have any tips for improving uitableview scrolling performance iphone uitableview scrolling uiimage share improve this question Cache the height of the rows the table view can request this frequently Create a least recently..

Core Data - Storing Images (iPhone)

http://stackoverflow.com/questions/2090028/core-data-storing-images-iphone

Image object is not called up unless required . However I am unsure how to practically store the image and whether this is potentially fatal in terms of performance. I would be grateful for any advice on the approach and pitfalls from anyone who has attempted this. iphone design image core data storage share improve this.. Data is as follows 100 kb store in the related entity person address whatever . 1 mb store in a separate entity on the other end of a relationship to avoid performance issues. 1 mb store on disk and reference the path in your Core Data store. You can use the transformable data type to store the NSImage directly into Core Data...

Comparison of JSON Parser for Objective-C (JSON Framework, YAJL, TouchJSON, etc)

http://stackoverflow.com/questions/2256625/comparison-of-json-parser-for-objective-c-json-framework-yajl-touchjson-etc

JSON Framework has relatively long history and is widely used. Touch JSON parses NSData instead of NSString. In addition as far as I tested the result of performance comparison is as follows fast YAJL JSON Framework Touch JSON slow . If you know pros and cons of these JSON parsers could you tell me Lastly if you know any other..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

iOs tips and hints There has been many Questions recently about drawing PDF's. Yes you can render PDF's very easily with a UIWebView but this cant give the performance and functionality that you would expect from a good PDF viewer. You can draw a PDF page to a CALayer or to a UIImage . Apple even have sample code to show how draw.. are destroyed again when they are 2 pages away from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed here EDIT Some Tips Credit Luke Mcneice VdesmedT Matt Gallagher Johann Save any media to disk when..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

What's the easiest way to resize/optimize an image size with the iPhone SDK?

http://stackoverflow.com/questions/612131/whats-the-easiest-way-to-resize-optimize-an-image-size-with-the-iphone-sdk

doesn't even have a big enough display to show the image in its original size I'm planning on resizing the image to something a bit smaller to save on space performance. Also some of those images are JPEGs and they are not saved as the usual 60 quality setting. How can I resize a picture with the iPhone SDK and how can I change..

Unable to process application info.plist validation at this time due to a general error (1095)

http://stackoverflow.com/questions/8353049/unable-to-process-application-info-plist-validation-at-this-time-due-to-a-genera

Having trouble adding objects to NSMutableArray in Objective C

http://stackoverflow.com/questions/851926/having-trouble-adding-objects-to-nsmutablearray-in-objective-c

self.currentCard cardId viewedCardsArray addObject cardIdObject cardIdObject release So this code executes and does not seem to leak according to the Leaks performance tool . However when stepping through the code at no point does CardIdObject appear in viewedCardsArray . Looking through SO I know these basic questions are pretty..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

it incurs the penalties discussed below ARC will not leak memory during ObjC or C exception throws in ObjC code but this is at the cost of both time and space performance. This is yet another in a long list of reasons to minimize your use of ObjC . ARC will not work at all on iPhoneOS 3 or Mac OS X 10.5 or earlier. This precludes..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

the UIImage imageNamed FUD I see a lot of people saying imageNamed is bad but equal numbers of people saying the performance is good especially when rendering UITableView s. See this SO question for example or this article on iPhoneDeveloperTips.com UIImage 's imageNamed method used to..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

URL NSError error NSString page NSString stringWithContentsOfURL requestURL encoding NSASCIIStringEncoding error &error EDIT Both these methods take a performance hit however since they do the request twice. You can get around this by grabbing the content from a currently loaded UIWebView using its stringByEvaluatingJavascriptFromString..

Use CoreData or SQLite on iPhone? [closed]

http://stackoverflow.com/questions/1318467/use-coredata-or-sqlite-on-iphone

question This is a common question here Core Data vs. SQLite for SQL experienced developers Core Data vs Sqlite and performance Core Data vs sqlite3 is it worth using core data for a simple sqlite app on the iphone with one table and no relationships.. for complex object models. You get undo redo support almost for free with it. It also provides some very significant performance benefits particularly on the iPhone. Even though it seems counterintuitive given how much overhead you'd think the framework.. though it seems counterintuitive given how much overhead you'd think the framework has in most cases you can beat the performance of hand tuned SQLite using Core Data. On the iPhone it does a great job of batching fetches to minimize memory usage. The..

Tricks for improving iPhone UITableView scrolling performance?

http://stackoverflow.com/questions/1352479/tricks-for-improving-iphone-uitableview-scrolling-performance

for improving iPhone UITableView scrolling performance I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the.. that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent but can sometimes be jerky. I found these tips I found on the FieryRobot blog glassy scrolling with uitableview.. with uitableview more glassy scrolling with uitableview Does anyone have any tips for improving uitableview scrolling performance iphone uitableview scrolling uiimage share improve this question Cache the height of the rows the table view can request..

Core Data - Storing Images (iPhone)

http://stackoverflow.com/questions/2090028/core-data-storing-images-iphone

required . However I am unsure how to practically store the image and whether this is potentially fatal in terms of performance. I would be grateful for any advice on the approach and pitfalls from anyone who has attempted this. iphone design image.. related entity person address whatever . 1 mb store in a separate entity on the other end of a relationship to avoid performance issues. 1 mb store on disk and reference the path in your Core Data store. You can use the transformable data type to store..

Comparison of JSON Parser for Objective-C (JSON Framework, YAJL, TouchJSON, etc)

http://stackoverflow.com/questions/2256625/comparison-of-json-parser-for-objective-c-json-framework-yajl-touchjson-etc

history and is widely used. Touch JSON parses NSData instead of NSString. In addition as far as I tested the result of performance comparison is as follows fast YAJL JSON Framework Touch JSON slow . If you know pros and cons of these JSON parsers could..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

Questions recently about drawing PDF's. Yes you can render PDF's very easily with a UIWebView but this cant give the performance and functionality that you would expect from a good PDF viewer. You can draw a PDF page to a CALayer or to a UIImage . Apple.. are 2 pages away from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed here EDIT Some Tips Credit Luke Mcneice VdesmedT Matt Gallagher..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

As hpple is a wrapper over XPathQuery which is another wrapper this option probably is not the most efficient. If performance is an issue in your project I recommend to code your own lightweight solution based on hpple and xpathquery library code...

What's the easiest way to resize/optimize an image size with the iPhone SDK?

http://stackoverflow.com/questions/612131/whats-the-easiest-way-to-resize-optimize-an-image-size-with-the-iphone-sdk

to show the image in its original size I'm planning on resizing the image to something a bit smaller to save on space performance. Also some of those images are JPEGs and they are not saved as the usual 60 quality setting. How can I resize a picture..

Save An Image To Application Documents Folder From UIView On IOS

http://stackoverflow.com/questions/6821517/save-an-image-to-application-documents-folder-from-uiview-on-ios

man. Don't harm yourself or others. You probably don't want to store these images in Core Data since that can impact performance if the data set grows too large. Better to write the images to files. NSData pngData UIImagePNGRepresentation image This..

Unable to process application info.plist validation at this time due to a general error (1095)

http://stackoverflow.com/questions/8353049/unable-to-process-application-info-plist-validation-at-this-time-due-to-a-genera

Having trouble adding objects to NSMutableArray in Objective C

http://stackoverflow.com/questions/851926/having-trouble-adding-objects-to-nsmutablearray-in-objective-c

addObject cardIdObject cardIdObject release So this code executes and does not seem to leak according to the Leaks performance tool . However when stepping through the code at no point does CardIdObject appear in viewedCardsArray . Looking through..

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

ARC will not leak memory during ObjC or C exception throws in ObjC code but this is at the cost of both time and space performance. This is yet another in a long list of reasons to minimize your use of ObjC . ARC will not work at all on iPhoneOS 3 or..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

the UIImage imageNamed FUD I see a lot of people saying imageNamed is bad but equal numbers of people saying the performance is good especially when rendering UITableView s. See this SO question for example or this article on iPhoneDeveloperTips.com..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

stringWithContentsOfURL requestURL encoding NSASCIIStringEncoding error &error EDIT Both these methods take a performance hit however since they do the request twice. You can get around this by grabbing the content from a currently loaded UIWebView..

CoreGraphics Image resize

http://stackoverflow.com/questions/10993868/coregraphics-image-resize

Image resize This code is from Apple's WWDC 2011 Session 318 iOS Performance in Depth and uses CoreGraphics to create thumbnails from server hosted images. CGImageSourceRef src CGImageSourceCreateWithURL..

Cocoa Touch: When does an NSFetchedResultsController become necessary to manage a Core Data fetch?

http://stackoverflow.com/questions/1263723/cocoa-touch-when-does-an-nsfetchedresultscontroller-become-necessary-to-manage

has a Core Data backing. In every case I've used it for it significantly reduced the amount of code I had to write. Performance wise it can lead to a huge improvement as well. Rather than fetching in your entire data set if you use setFetchBatchSize..

ALAsset Photo Library Image Performance Improvements When Its Loading Slow

http://stackoverflow.com/questions/13508535/alasset-photo-library-image-performance-improvements-when-its-loading-slow

Photo Library Image Performance Improvements When Its Loading Slow Hi i've got a problem with display an image on my scrollView. At first i create new..

Improving Finger Painting Performance

http://stackoverflow.com/questions/1355527/improving-finger-painting-performance

Finger Painting Performance Simple Painting Fingering the iPhone screen paints temporary graphics to a UIView. These temporary graphics are erased..

Memory leak detection tools in Xcode

http://stackoverflow.com/questions/144261/memory-leak-detection-tools-in-xcode

called 'Leaks' and like a previous poster said the easiest way to run it is straight from Xcode run Start with Performance Tool Leaks. It seems very good at detecting memory leaks and was easy for a Non C Head like me to figure out. share improve..

to drawRect or not to drawRect (when should one use drawRect/Core Graphics vs subviews/images and why?)

http://stackoverflow.com/questions/14659563/to-drawrect-or-not-to-drawrect-when-should-one-use-drawrect-core-graphics-vs-su

expensive memory wise and really taxes the CPU. Basically that I should Avoid overriding drawRect WWDC 2012 iOS App Performance Graphics and Animations So I guess like everything it's complicated. Maybe you can help myself and others understand the..

sqlite Indexing Performance Advice

http://stackoverflow.com/questions/1862771/sqlite-indexing-performance-advice

Indexing Performance Advice I have an sqlite database in my iPhone app that I access via the Core Data framework. I'm using NSPredicates to..

iPhone - debugging “pointer being freed was not allocated” errors

http://stackoverflow.com/questions/295778/iphone-debugging-pointer-being-freed-was-not-allocated-errors

to turn NSZombie on so it reports the memory address of the object that is getting the extra release. Then Run with Performance Tool Object Allocations. This will bring up instruments. Look at the Console log as provided by Xcode organizer. Once you..

Starting point in learning Core Data on iPhone?

http://stackoverflow.com/questions/3164300/starting-point-in-learning-core-data-on-iphone

Looking for a UI library to present Data horizontaly in iOS

http://stackoverflow.com/questions/3179683/looking-for-a-ui-library-to-present-data-horizontaly-in-ios

if you leave out the outer table view with their cells which are not needed in your case. Edit to answer comment Performance was definitely great. Actually performance was the major reason to switch to this approach. Table views are especially great..

PowerVR SGX535 Shader Performance (OpenGL ES 2.0)

http://stackoverflow.com/questions/3320661/powervr-sgx535-shader-performance-opengl-es-2-0

SGX535 Shader Performance OpenGL ES 2.0 I'm currently working on a couple of shaders for an iPad game and it seems as if Apple's GLSL compiler isn't..

EXC_BAD_ACCESS on device, but fine on Simulator

http://stackoverflow.com/questions/3583728/exc-bad-access-on-device-but-fine-on-simulator

The next thing to do is Enable Guard Malloc and then read this http developer.apple.com iphone library documentation Performance Conceptual ManagingMemory Articles MallocDebug.html You can only do this in the simulator your goal is to use the extra..

Core Animation CALayer mask animation performance

http://stackoverflow.com/questions/4520941/core-animation-calayer-mask-animation-performance

rotate the fgLayer instead of its mask performance is wonderful though it's certainly not the affect I'm going for Performance is also just as bad as before if I rotate the fgLayer instead of the mask while the mask is applied. So if having to recomposite..

iPad large NSArray - initWithObjects vs. ArrayWithObjects

http://stackoverflow.com/questions/5155097/ipad-large-nsarray-initwithobjects-vs-arraywithobjects

unless you subsequently retain it and initWithObjects returns an array you must then release to avoid a memory leak. Performance wise there is no difference between them. I would suggest if you're getting a bad access error using initWithObjects but..

instruments with iOS: Why does Memory Monitor disagree with Allocations?

http://stackoverflow.com/questions/5518918/instruments-with-ios-why-does-memory-monitor-disagree-with-allocations

Instruments Leaks - Not showing my source code

http://stackoverflow.com/questions/728088/instruments-leaks-not-showing-my-source-code

the app using the 'Device iPhone OS 2.2' with the Debug configuration. I launch Leaks by selecting Run Start With Performance Tool Leaks from within Xcode. How would one go about 'making the symbol files available' for Leaks iphone memory instruments..

Better performance with libxml2 or NSXMLParser on the iPhone?

http://stackoverflow.com/questions/826281/better-performance-with-libxml2-or-nsxmlparser-on-the-iphone

is for high performance XML parsing on the iPhone is given its limited amount of CPU power. I have reviewed the XML Performance App that Apple provides as a demonstration and it seems that for the data feed 300 iTunes songs that they're parsing.. libxml2..

How to asynchronously download 1000 images?

http://stackoverflow.com/questions/9166377/how-to-asynchronously-download-1000-images

Will my iPhone app take a performance hit if I use Objective-C for low level code?

http://stackoverflow.com/questions/926728/will-my-iphone-app-take-a-performance-hit-if-i-use-objective-c-for-low-level-cod

Mike Ash has some hard numbers for performance of various Objective C method calls versus C and C in his post Performance Comparisons of Common Operations . Also this post by Savoy Software is an interesting read when it comes to tuning the performance..

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

need read only access to a small rectangular rendering area in the frame buffer to process the data further in CPU. Performance is important because I have to perform this operation repeatedly. I have searched the web and found some approach like using..