Difference between internal and external memory speed on Android - android

I have a question about the actual speed difference between the internal and disk memory of Android devices.
It has been asked in SO 15698747, but without specific answer. I know the facts, discussed there, but I would like to get some (at least rough) data. Has anybody measured actual speed differences? To be more specific:
1/ If the disk memory is emulated portion of the internal memory (like on NEX4, NEX5 ...), is there a considerable difference?
2/ Has anybody checked the difference between the internal memory and SD cards class 4,6,10 ...? I know that different devices will start with different internal memory speed, but any estimate will be good.
Rough multiples (how many times is the internal memory faster) would suffice.

Related

How should I address this crashing problem?

I recently created an android application, and after I completely redid my spinner dropdown menus using a custom adapter, some devices are crashing. It's very minimal, like 3 people have experienced crashes ever, but still it's something I want to address if possible because the apps minimum SDK version is as low as 16, so I imagine it's older devices that struggle the most. Attached is a pic of the crash report! This specific device has 2 GB of memory, you would think that would easily be enough to load a spinner with a bunch of low quality images right?
Thanks for the help in advance! This is the crash report: https://i.imgur.com/Wtm5pX9.jpg
The amount of memory the device has != the amount of memory you can use. The OS takes a lot. Other apps take a good amount. And even the memory you can use is fragmented into different pools. Generally "OutOfMemoryException" means out of Java heap memory (out of native memory would be a different crash, for example). Bitmap memory goes into different buckets on different OS versions, they've changed it a few times. So it could be a variety of reasons- you have too large an image that's using insane memory, your have leaks, you have sufficient memory on the device but the heap allocation spiked for some reason, your network layer isn't efficient (if you use Volley to download images its particularly stupid about that). There's not enough info here to actually give you a suggestion. I'd try to replicate it on a simulator with the RAM purposely capped at 1GB or smaller and see if you can reproduce it.

Android memory usage different devices

There are a lot of tutorials,articles on the web about memory perfomance, and how to improve it,remove leaks etc..
But I haven't found information how many memory apps should use. Of course less is better,but I haven't found information about what is maximal memory which app can use and works well on the most of devices.
Is ok for app to use around 50-60 MB of RAM?

Android how much to store in internal storage

This may be an already answered question, but I guess I'm still a bit confused. I've read most of the questions related to storage, I understand the pros and cons of each solution, I want to use the internal storage, but I still feel stuck because of the space constraints.
I've got a working app that can save up to 200 images which can be over 100k each(so more or less 20MB of data). The app will also be restricted to the new generation of phones(Samsung Galaxy S3,4 , Iphone 5s) because of camera requirements.
I'd like to save the images in the internal storage because I don't want the users messing about with them and I'm guessing that it should be fine, but I know there can be quite restrictive limits to the allowed memory. Is 20MB too much? where can I find the amount of internal app-allocated memory?
here I found that the memory is no longer physically distinct(
external-internal storage) which raises the question how is it allocated?
A little insight would be great! Thanks
I know there can be quite restrictive limits to the allowed memory
Not since Android 3.0, for most devices. Android 3.0+ has internal and external storage sharing one partition by default, so if a device is advertised as having 8GB of space, that is available to both internal and external storage. You will find the occasional oddball device that has separate internal and external storage, but they are the exception, not the rule, for Android 3.0+.

Which is faster to access a file in android, sdcard or system partition?

I have one simple question. If i have one file in system partition of android and if i copy the same file on sdcard, which will be faster to access?
Please answer this question.
Thanks in advance
The difference will be negligible. In any case, most newer devices have just one storage onboard the device, which is partitioned. In such devices, the need to access a separate SD Card goes away, as the memory is the same as the system storage.
On devices with an SD Card, there may be a very minute delay in accessing the file, but it will be negligible in pretty much any scenario.
You will not be able to really notice the access speed difference between accessing file from internal memory and SD Card.
With internal memory you will get added advantage of a security as it won't be accessible for other applications or you cannot access it by mounting.
The answer is Internal phone memory
because disk management(for phone ) is always better for internal memory as compared to SD card, So it is faster to access internal memory but you will not be able to notice the because difference is in mili seconds
With internal memory you will get advantage like user can't see your file until unless device is not rooted.
As stated, the time difference is not noticeable. However, a simple law of physics (and EE) will tell you that the longer the distance is (in this case the I/O bus), the longer it will take in time. Thus, the SDCard is slower than anything on the motherboard, even though it is measured in miliseconds.
I have found the SDCard is best used for static storage of your media files, and apps should be installed on the phone making them run as fast as possible, even though you can move some apps to the SDCard.
The speed is not noticeable unless you are coping the very large video files. The SD card speed is measured by class like:(Class 4, 6 or 10), the class 10 have higher speed as 10MB/S and class 2 have speed around 2MB/S. So, for good class of SD card, the speed gap is less. However, normally phone memory is faster than the SD card.

Is it faster to launch an app from internal storage or from SD card?

I know that there are different classes of SD Cards and I also know, that there are many different kinds of internal storage (eg. my Dell Streak 5 has a 2GB Micro SD Card Class 4 built in).
However, is there a significant increase/decrease of speed if I have an app installed on a SD Card? Or is it the same (if you are not accounting the SD Classes)?
Like Phil say, it depends of a lot of factor.
I add : Your SDCard is a really important factor, you have to check your Read / Write Speed to see if the ratios are good. They depends a lot function the brand, the reference... of your SDcard.
A lot of people say it' s really faster to run on an SDCard.
Exemple here hith the CyanogenMod http://forums.androidcentral.com/barnes-noble-nook-color/85741-cm7-faster-internal-memory-sd-card-boot.html
You have to test function your hardware.
Good luck ;).
It depends.
No really, it does. The only way to be sure is to diagnose this yourself. IMHO I don't think there'll be a significant difference in speed if the circumstances are great. However, there probably are circumstances where the card could be significantly slower.

Categories

Resources