Tag Info

New answers tagged

-3

One concrete example is when you update a class. A new class object is created and then it is swapped with the previous one. This is done because all objects of that class already know their class, and as you have to replace it at one time for all of them, become makes a good sense.


8

Gilad Bracha talks about become: at some length: One of Smalltalk’s most unique and powerful features is also one of the least known outside the Smalltalk community. It’s a little method called become: . What become: does is swap the identities of its receiver and its argument. That is, after a become: b all references to the object ...


0

As an example, floating-point arithmetic often has high throughput, but also high latency. For example, you might be able to start two multiplications every cycle, but it might take five cycles until the result of a multiplication is available. The first is called throughput (two per cycle), the second is latency. If you perform calculations so that one ...


1

An application is called memory-bound if it requires a lot of data from memory, so most of its execution time is spent reading and writing data. Latency-bound can be thought as a subset of the memory-bound category and it occurs primarily when you don't retrieve too much data from memory at once, but you have to wait a lot to get the data close to the ...


0

Is a "memory page" always related only to a data chunk of virtual memory? In some sense. The kernel has pages internally used for DMA, I/O buffering, block and inode cacheing, etc. These are all physical memory pages, but they're not visible as such to any user process unless they're mmapped. Are physical RAM addresses also split into pages? Yes - ...


1

Pages are the chunks of memory that may be swapped between RAM and the hard disk in order to support virtual memory. Example: Say you have 1 MB pages, 2 MB of physical RAM, and a lot more virtual RAM. You run application A that takes 1 MB. It gets one virtual page of memory, which is mapped to one of the physical pages. Then you run application B that ...


3

Though compressed for storage, images can take up much more space internally as they are mapped into the display memory. Combine this with the wide variation in device capacities among Android devices, and you're likely to hit the memory limits of the less capable devices. If possible, you can try to keep track of images that are not currently in the ...



Top 50 recent answers are included