performance tag

19 questions


1 answers
82 views
0
What's the best way to read large text files in Java?

I want to read almost 5-6 gigabytes of files in a row, but how can I read them quickly?

2 years ago

1 answers
157 views
0
Why does 0.1f become 10 times slower if you change it to zero

When I ran it on Visual Studio 2010 SP1,Source Code 1 operates about 10 times faster than Source Code 2.There are only two lines that change. I don't think there's much differenceWhy is the performanc...


1 answers
83 views
0
Which is faster, Array or List?

You need to have thousands of strings in memory that are accessible sequentially. Should I save the string to Array? Should I save it to the list? Unlike List, Array stores all data continuously in a ...


1 answers
103 views
0
To remove elements with all null values from an ArrayList or String array

I'd like to remove all elements that have null values from the ArrayList or String array in JavaFor me,for (Tourist t : tourists) { if (t != null) { t.setId(idForm); } }I tried turning around the ...


1 answers
111 views
0
Does the findViewById function perform poorly on Android?

Does findViewById() perform poorly on Android?What algorithms are used internally to find Id?And I wonder why the performance is poorㅠ


1 answers
120 views
0
It's an Android serialization question! Android Serializable

Hello, while studying Android, I have a question, so I posted this question.I suddenly remembered watching YouTube, where the serialization of objects that I saw once said that data transfer was very ...

2 years ago

1 answers
98 views
0
To profile Python code

Project Euler and other coding contests often limit the program's running time or compete with each other to see how fast their code works. On Python, however, the approach of measuring the time-measu...


1 answers
87 views
0
[Lecture 4-11] Question to querySelector() about performance issues.

Because of the performance difference between getElementById and querySelector(), people around me tell me not to use querySelector, but I wonder if it really is.


1 answers
114 views
0
I have a question about server performance.

Regardless of language, I had a question every time I set up a server, so I want to ask.


1 answers
169 views
0
What is the difference between using the StringBuilder class in Java's toString() method and using the string connection operator?

Which of the two toString() methods below is the better one?public String toString(){ return {a:+ a + , b: + b + , c: + c +};}public String toString(){ StringBuilder sb = new StringBuilder(100); retu...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.