@staticmethod
    def _total_request(base, new):
        req = ResourceAllocationManager._max_request(base, new)

        # Rerunnable only if all are rerunnable.
        if 'rerunnable' in new:
            req['rerunnable'] = base.get('rerunnable', True) and new['rerunnable']

        # If specified, these should match.
        for item in ('accounting_id', 'queue_name', 'job_category', 'localhost'):
            if item in new:
                if item in base:
                    if new[item] != base[item]:
                        raise ValueError('Incompatible settings for %r: %r vs. %r'
                                         % (item, new[item], base[item]))
                else:
                    req[item] = new[item]

        # Total time requested.
        if 'resource_limits' in new:
            req_limits = req['resource_limits']
            new_limits = new['resource_limits']
            base_limits = base.get('resource_limits', {})
            for item in ('cpu_time', 'wallclock_time'):
                if item in new_limits:
                    req_limits[item] = base_limits.get(item, 0) + new_limits[item]
            req['resource_limits'] = req_limits

        return req
Run pyexcelerate in "faster" mode.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocationManager._total_request--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/dev/performance/bench_excel_writers.py/time_pyexcelerate