DoctorLove wrote:Finish the projects for my clients, hospitals and try to beat the JAVA variants. They suck and are slow.
If speed is the performance metric you are after, you may be better off switching to Java. Even Fred has mentioned Java has distinct speed advantages over PB:
Re: ...PureBasic 2x slower than Java?
Postby Fred » Mon Nov 14, 2011 9:21 am
Well JAVA will probably outperform PB and most C compiler on such benchmarks because they get more informations on the current underlying hardware: as it's a JIT compilation, it can leverage SSE2/3/4, 64 bit and such stuffs if it's present. PB compiles a code which is compatiable with i486. And to be honnest, a whole team is working to optimize JAVA JIT so it's not really a surprise to see it faster. JAVA has evolved a lot, and if you choose the right JVM (server one please, for max speed), it often peroduce best results than C/C++.
Having said that, it is entirely possible that the Java variants are not slow because they used Java but because of how their code was written. If they wrote inefficient code, depending on how bad it is, even a slow interpreter could show a speed improvement. If that is the case, then you should have a certain winner with PB code.