Do you think that xanadu will catch?

Page 5 of 5 FirstFirst 12345
Results 61 to 62 of 62
  1. #61
    PeterRabbit retep998 is offline
    MemberRank
    Apr 2008 Join Date
    VanaLocation
    707Posts

    Re: Do you think that xanadu will catch?

    Through my experience with memory management in C/C++, and benchmarks with various other languages, garbage collection is faster than using naive piles of heap allocation with reference counting. However, real performance savings can be had by simply not creating so much shit on the heap. When I was working on NoLifeWz, some of the costliest operations were constructing objects and such. A garbage collected language has its own heap which is fast, whereas in C/C++ allocations come directly from system calls which are slow. As a result garbage collected languages are faster, but they are not ideal. By carefully managing my resources, I reduced my dependency on the heap to a few core objects, which I had millions of. Then I implemented memory pools dedicated to those objects. Creating a new object was as simple as incrementing a pointer and returning it. For certain large operations, such as decompressing sprites, I simply used 2 static buffers and passed the data back and forth as I worked with it. In the end, I never had to delete anything from the heap, and my performance was superior to all other libraries.

    tl;dr - Garbage collection is fast, but manually managing memory has more potential to be faster.

    Until you're a pro (like me), don't even bother trying to compare languages on the basis of GC. In fact, don't even bother comparing languages at all. Just use what is easiest for you, and work on making your skills better.

  2. #62
    wackyracer#1337 wackyracer is offline
    MemberRank
    Jun 2008 Join Date
    1,524Posts

    Re: Do you think that xanadu will catch?

    Quote Originally Posted by lilJoker View Post
    Actually, to be honest;I personnally love using c++! See, back when it was v.55 TitanMS based servers were EVERYWERE. Honestly though, most of them sucked! But when i was a noob and started trying to make one, it took forever for me to catch along to it. Through determanation ( and stubbornness) I successfully got my server to be pretty damn stable, and almost completely customized.
    I had quit coding and shit for like a year- two, and only recently have i been getting back into it( Java is the main thing now :( easy, but i hate it.). But i never found anything about a new c++ server for v83(the version im using). Untill the other day i found the xanadu source( or repack) that was released. Yall( from page one on this topic) are acting like we need noobs to create the servers we play. Fck no! if a couple of good experienced ppl got together, im sure we can get a nice server up in no time! Im universal myself. I can somewhat do everything that making a server needs. Alll i need is a nice staff with exp.

    Ps- If your interested, hit me up.

    [edit] Lol i didnt realize this discussion was a year ago... Whoops.
    grrr y u bump thred :c



Page 5 of 5 FirstFirst 12345

Advertisement