Changed FunctionChart1Number to use regular count of operations, was slow for many functions
This commit is contained in:
		
							parent
							
								
									b37e372815
								
							
						
					
					
						commit
						a5adcdbeb6
					
				| 
						 | 
				
			
			@ -39,13 +39,10 @@ interface FunctionChart1NumberProps {
 | 
			
		|||
type point = { x: number; value: result<number, string> };
 | 
			
		||||
 | 
			
		||||
let getFunctionImage = ({ chartSettings, fn, environment }) => {
 | 
			
		||||
  //We adjust the count, because the count is made for distributions, which are much more expensive to estimate
 | 
			
		||||
  let adjustedCount = chartSettings.count * 20;
 | 
			
		||||
 | 
			
		||||
  let chartPointsToRender = _rangeByCount(
 | 
			
		||||
    chartSettings.start,
 | 
			
		||||
    chartSettings.stop,
 | 
			
		||||
    adjustedCount
 | 
			
		||||
    chartSettings.count
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  let chartPointsData: point[] = chartPointsToRender.map((x) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user