text: public final int computeIterations(int valueCount, int ramBudget) {final int iterations = ramBudget / (byteBlockCount() + 8 * byteValueCount());if (iterations == 0) {return 1;} else if ((iterations - 1) * byteValueCount() >= valueCount) {return (int) Math.ceil((double) valueCount / byteValueCount());} else {return iterations;}}