Quantcast
Channel: Why is printing "B" dramatically slower than printing "#"? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

Answer by Abdul Alim Shakir for Why is printing "B" dramatically slower than...

Yes, the culprit is definitely word-wrapping. When I tested your two programs, NetBeans IDE 8.2 gave me the following result.First Matrix: O and # = 6.03 secondsSecond Matrix: O and B = 50.97...

View Article


Answer by Roy Shmuli for Why is printing "B" dramatically slower than...

I performed tests on Eclipse vs Netbeans 8.0.2, both with Java version 1.8;I used System.nanoTime() for measurements.Eclipse:I got the same time on both cases - around 1.564 seconds.Netbeans:Using "#":...

View Article


Answer by T.J. Crowder for Why is printing "B" dramatically slower than...

Pure speculation is that you're using a terminal that attempts to do word-wrapping rather than character-wrapping, and treats B as a word character but # as a non-word character. So when it reaches the...

View Article

Why is printing "B" dramatically slower than printing "#"?

I generated two matrices of 1000 x 1000:First Matrix: O and #.Second Matrix: O and B.Using the following code, the first matrix took 8.52 seconds to complete:Random r = new Random();for (int i = 0; i...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>