Questions tagged [capacity]

Questions about resource capacity. Use in conjunction with the applicable tag such as [memory], [disk] or [database] to indicate the type of resource being referred to.

Questions about resource capacity. Use in conjunction with the applicable tag such as , or to indicate the type of resource being referred to.

250 questions
3
votes
0 answers

Link Sprint Capacity with Outlook Calandar

I’m not sure if this question is for StackOverflow or some other Q&A site. Under the Capacity tab we have to manually update for each team member's annual leave that have been booked. Is it possible to link this to the outlook calendar? Edit: Since…
Yawar Murtaza
  • 3,655
  • 5
  • 34
  • 40
3
votes
2 answers

Is This The Best Way To "Increase" The Size of An ArrayList?

ArrayList tempArray = new ArrayList<>(size); I was building a tempArray for my merge sort that will either sort integers or Strings depending on the context. Hence the type T ArrayList. Then all the sudden I kept running into IndexOutOfBounds…
Alex
  • 620
  • 1
  • 6
  • 20
3
votes
2 answers

Amortizing in std::vector::resize and std::vector::push_back

We know that the reallocation mechanism takes care of allocating more memory that we actually need when calling std::vector::push_back(). Usually the capacity grows with the multiplier 2x or with a golden ratio number ~1.618... Assume, we add…
paceholder
  • 1,064
  • 1
  • 10
  • 21
3
votes
0 answers

macOS Sierra increase named pipe capacity

mkfifo tmp The tmp named pipe accommodates only 8192 bytes. According to this answer, the default size should be 16384 bytes switching to 65336 on large writes. Not the case on Sierra v.10.12.4 Is there a way to increase the capacity of the named…
user3017869
  • 543
  • 2
  • 6
  • 16
3
votes
1 answer

What is the max capacity of an ArrayList?

I know that the initial capacity of an ArrayList is 10. When this limit is exceeded, a new ArrayList is created with the capacity of (oldcapacity * 3 / 2) + 1, and the elements are copied over. But what is the maximum capacity of an ArrayList? I…
Javamania
  • 31
  • 2
3
votes
2 answers

How to get exact capacity from storage

I want to read the exact capacity from the intern storage programmatically. I's a Samsung Galaxy S7 Edge 32GB device what I am using. In the preinstalled Samsung FileManager (In German: Eigene Dateien) it shows me the total capacity of 32GB. Even…
MSeiz5
  • 182
  • 1
  • 9
  • 28
3
votes
1 answer

Does trimtosize() function works on ensureCapacity() function in ArrayList

Suppose I have an Array List of String. I used Function ensureCapacity() and set its capacity to 50. But I add only 10 String Elements and rest 40 memory is wasted. Now after that i use trimToSize() function. My Question is "Does trimToSize()…
3
votes
2 answers

How to delete a queue in YARN?

I see a queue in the yarn configuration file that I want to delete: yarn.scheduler.capacity.root.queues a,b,c The queues at the this level (root is the root queue). …
makansij
  • 9,303
  • 37
  • 105
  • 183
3
votes
1 answer

AWS Free tier Read/Write allowance/table

AWS Free tier allows 25 Read/Write per account. I am not able to understand how this is allotted. I tried with MAX 8 Tables and MIN 2 Tables (Single DB only). AWS is allotting 3 Read/Write per table no matter what are the number of tables in DB. (I…
user3363723
3
votes
1 answer

Android not enough storage memory

I created an Android app sometime ago. What the app does is basically download a list of files (images and videos) and play them in a loop (like a Playlist). These files are saved in the default Android External Storage Directory. I get it using…
Ale
  • 2,282
  • 5
  • 38
  • 67
3
votes
2 answers

Water capacity of a 2D array

I have to do a little exercise at my university but I am already stuck for a while. The exercise is about calculating the water capacity of a 2D array, the user has to enter the width (w) and the height (h) of the 2D array, and then all the elements…
Chantal
  • 111
  • 2
  • 10
3
votes
0 answers

How to reduce the file size of an image in access using vba

I have an access file and i want to find a way to reduce the file size of the images that i insert using VBA code. More specifically they gave me an access application where you can insert an image by drag and drop. I want these images when they…
dimcode
  • 213
  • 3
  • 16
3
votes
6 answers

What is the best practice for setting the initial capacity of an ArrayList that is not always used?

I have some classes that have ArrayList fields that are only sometimes used. I generally initialize these fields like so: private List widgets = new ArrayList<>(); I understand about using the overload constructors to set the initial…
LimaNightHawk
  • 6,613
  • 3
  • 41
  • 60
3
votes
2 answers

Sharepoint performance under heavy load and capacity limitations

I'm working on a new storage system for a business solution package that consists of around 40 applications. Some of those applications generate documents (mostly docx, some pdf) that are currently saved and organized in a network share…
dr.lijenjin
  • 317
  • 5
  • 16
3
votes
2 answers

STL vectors, push_back() and capacity

I was wondering if the capacity carries over when one pushes a vector onto a vector of vectors. Say i have a code that looks like std::vector< std::vector< int > > vec_of_vec; std::vector< int > tmp; for (int i = 0 ; i < 100; ++i) { …
jgyou
  • 473
  • 1
  • 8
  • 19