UnknownNooby's blog

By UnknownNooby, history, 7 years ago, In English

I've noticed recently that my friends' team "Фанаты nagai: scanhex, manoprenko" registered more than once. Moreover, "different" teams have different scores, is this the intended behaviour or it will be fixed? I can't be sure that their team is the only case and this is definitely the thing to fix.

Their teams in standings

Full text and comments »

  • Vote: I like it
  • +12
  • Vote: I do not like it

By UnknownNooby, history, 8 years ago, In English

Recently, one guy posted this blog, and couldn't understand what was really wrong with his code. It turns out that his code was wrong anyway, but I've noticed one thing:

Take a look at these two submissions: TL and OK.

In both solutions I am using self-written vector class, but the difference between these two codes, obviously is that in the OK code I do not use the delete[] operator, thus it takes less time to destruct my class, but doesn't free the memory on destruction (which can be seen by memory taken by solution).

Solutions take about this much time on my machine:

No vects:                  248ms
Vects with no destruction: 370ms
Vects with destruction:    948ms 

The question stands: Why is delete[] operation so slow and where can I read about memory manager in c++? Google only leads me to things like "writing your own memory manager in c++" which is actually interesting, but unfortunately hard to read and that's not exactly the case I'm looking for.

Full text and comments »

  • Vote: I like it
  • +48
  • Vote: I do not like it