1

I was told to post this here, from Stack Overflow.

I am trying to run a Java program which finds Poly divisible numbers. However, I have found that it is significantly slower on my Windows computer in comparison to the speed it runs at on a MacBook Pro.

Do you know any reason why this may be and how this could be fixed?

Windows Specs:

MacBook Pro Early 2015

Code https://github.com/oliverdunk/Polydivisbles

10
  • How much memory have you allowed the Java VM
    – Ramhound
    Commented Jul 24, 2017 at 23:09
  • I have allowed 8192m(-Xmx 8192m)
    – Joseph
    Commented Jul 24, 2017 at 23:15
  • 1
    Same version of Java on both machines? Same amount of memory assigned to the Java VM?
    – Ramhound
    Commented Jul 24, 2017 at 23:30
  • I assume they have less, however I just realised my target version was 1.7, not 1.8. It didn't make a difference with timings though.
    – Joseph
    Commented Jul 24, 2017 at 23:38
  • How many threads are being used on each machine?
    – Ramhound
    Commented Jul 24, 2017 at 23:55

0

You must log in to answer this question.

Browse other questions tagged .