text: public int ComputeIterations(int valueCount, int ramBudget){int iterations = ramBudget / (ByteBlockCount + 8 * ByteValueCount);if (iterations == 0){return 1;}else if ((iterations - 1) * ByteValueCount >= valueCount){return (int)Math.Ceiling((double)valueCount / ByteValueCount);}else{return iterations;}}