Showing results for 
Search instead for 
Did you mean: 
New Member

Need help with bottleneck in my algorithm

As a programmer, I've encountered a problem with the data flow algorithm in my code. I have a for loop that processes a large amount of data, but it seems to slow down significantly as the loop progresses. I suspect this is due to a bottleneck in my algorithm, where a lack of resources or inefficiency in my code limits the processing time.

Here's an example of the problematic code:

for i in range(10000000):
  # process data
  data = fetch_data()
  result = process_data(data)

I need to find a way to optimize the processing time so that my algorithm can handle a large amount of data efficiently. I've tried reading this site about the dataflow but I need more support can someone help me?


Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors