I am using this code to convert a Set to a List: Map<String, List<String>> mainMap = new HashMap<>(); for (int i=0; i < something.size(); i++) { Set<String> set =...
  • May 1, 2022
  • 0 Comments
IT Nursery
I have been doing some experimenting with caching performance using loader.io and have been left with some puzzling results. I was originally on a shared host that used a...
  • April 30, 2022
  • 0 Comments
Compiling a C++ file takes a very long time when compared to C# and Java. It takes significantly longer to compile a C++ file than it would to run...
  • April 30, 2022
  • 0 Comments
How can I do this fast? Sure I can do this: static bool ByteArrayCompare(byte a1, byte a2) { if (a1.Length != a2.Length) return false; for (int i=0; i<a1.Length; i++)...
  • April 30, 2022
  • 0 Comments
This was an interview question asked by a senior manager. Which is faster? while(1) { // Some code } or while(2) { //Some code } I said that both...
  • April 30, 2022
  • 0 Comments