5

As the title suggests, I have a very large algorithm that has many helper functions that I'm trying to optimize. I've ran several profiling functions that shows me how much time is being spent in each helper function. The profiling has identified one helper function in particular as the cause for the bottleneck. I would really like to post this to the SO community, but I'm not sure if I should include the entire algorithm with every helper function (for reproducibility and full transparency) or simply post the troublesome helper function. I've read this question, but this seems like a different situation. My helper function can run in isolation and I know that this function is the cause for the bottleneck, I just want to know if the community would like to see the full algorithm or simply have a look at a 20 line function that doesn't seemingly do anything exciting. Thanks in advance.

5
  • 2
    The minimum possible to help you resolve the issue is desired. Possibly a description of the algorithm and the problem function would be best to start. Remember, folks can always ask for more if they feel it is needed. Anyway, this related meta post might be worth a look
    – codeMagic
    Feb 3, 2016 at 1:41
  • For what purpose do you want to post it I wonder? What question would you ask that needs your life's work to be posted?
    – Gimby
    Feb 3, 2016 at 13:45
  • @codeMagic, the question you referenced was very helpful. As I am very new to the SO community and programming in general, I was unaware of a Code Review site. After reading through the comments/answer for that question I think that my question would be a good fit for Code Review. However, I am having trouble finding information for determining which site is most appropriate. Thanks again. Feb 3, 2016 at 15:21
  • @Gimby, my ultimate purpose is factoring extremely large numbers (not an easy thing), and the implementation that I'm currently trying to improve is none other than the Quadratic Sieve. Feb 3, 2016 at 15:23
  • 1
    @Joseph Here are a couple links that might help you decide whether the question should be asked on Code Review: meta.codereview.stackexchange.com/questions/5468/… and meta.codereview.stackexchange.com/questions/1687/… You'll also what to look at their on-topic help topic, and indeed the entirety of the their help section on asking... Feb 3, 2016 at 17:31

0

You must log in to answer this question.

Browse other questions tagged .