|
In java Can objects be created with both static memory allocation and dynamic memory allocation?
Answer Snippets (Read the full thread at stackoverflow):
Variables, or in static code blocks , are statically allocated, in the sense that allocation is done.
|
|
I want to add a widget to the bottom of a scrolled window, then scroll to the bottom of that window. However, the window thinks it is already at the bottom, because the widget has still not been allocated. I.e., this returns -1:
widget.get_allocation(...
Started by Matthew on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The ....
But see the note in the linked-to documentation, and investigate if those ways don't work better .
I'm not 100% sure I understand what you're trying to do, but still: At a minimum, you need to realize the widget to get it to compute those things .
|
|
I need to find out the "Allocation Unit Size" selected when a particular hard-disk was formatted.
It doesn't appear in the properties information for the drive.
Is there any easy way to get this information?
Started by Simon Johnson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
But this is far more quicker..
Thanks, I only knew the chkdsk command for this.
Use the fsutil command:
fsutil fsinfo ntfsinfo [drive letter]
You'll have to run this command with administrator privileges .
|
Ask your Facebook Friends
|
I have highly optimized piece of C++ and making even small changes in places far from hot spots can hit performance as much as 20%. After deeper investigation it turned out to be (probably) slightly different registers used in hot spots. I can control...
Started by Ćukasz Lew on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you allocate some registers yourself.
Trust allocation unless you have very good reasons for it.
These days GCC can do a way better job than you can with register allocation.
|
|
I am getting a "bitmap size exceeds VM budget" error. I have read that there is a 16MB memory limit. In this thread Romain Guy says that "you can only allocate 16 MB of memory for your entire application".
However, my app must be running out of memory...
Answer Snippets (Read the full thread at stackoverflow):
Have you tried profiling your memory usage with DDMS ... .
You could try using VMRuntime's setMinimumHeapSize, although as far as I know dalvik should automatically increase your Heap size when you run out of memmory (till it really runs out of memory :)) .
|
|
Hi friends,
In our File Transfer application the network performance was fair
but we want to get the maximum network performance so one way of achieving through
adaptive bandwidth allocation .So the application will be forced to attain the
available bandwidth...
Started by krishnakumar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't think "adaptive bandwidth allocation" really means anything tangible (considering.
|
|
The default allocation unit size recommended when formatting a drive in our current set-up is 4096 bytes. I understand the basics of the pros and cons of larger and smaller sizes (performance boost vs. space preservation) but it seems the benefits of ...
Started by davebug on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
[...] The solution to the problem is to increase the cluster size, for... .
If you are looking for an good article I recommend
The Hows and Whys of SSDs by Robert Hallock
I linked to page 2, which contains the part which discusses clustering and block size .
|
|
I'm formatting a drive using NTFS which will be dedicated as a file share for users to centrally store their files. The files will likely be large (10's to 100's of megabytes).
Someone suggested that using a large allocation unit size than the default...
Started by DSO on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
A resource for performance tuning_Hacks.html
Good luck, any further ....
So you might want to keep that in mind if you plan not to plan for backups ;-)
A larger allocation then it might pay to increase the allocation size to 32KB or 64KB.
|
|
I have a functions which takes a char * as its only argument. I then perform some strtok operations on it. Sometimes it works and sometimes it doesent. It working depends upon how the string was constructed. For instance here are the two cases.
int main...
Started by Matt on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Char *glob2 = "/abc....
Strtok() basically modifies the input string.
You can write to the stack.
You cannot write to statically allocated string memory on most compilers/runtimes/hardware.
Strtok writes to the memory allocated to the string.
|
|
I have a program in which I want to be able to store certain data (dynamically allocated blocks), on disk for reduced memory usage and persistence.
My first thought was to write my own custom allocator which managed the content of files on the disk, but...
Started by Akusete on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm that this may not be the best simply because your allocation pattern may not follow the same geometric by Andrei Alexandrescu and....
Implemented my own memory manager which uses buddy memory allocation and block sizes of powers of two.
|