Jump to content

Recommended Posts

Posted

int, byte = 4 byte both you stupid noob, you wont save memory if you use bytes, you only limit the values.

 

hehe i like guys like you.

 

if you use it for an average declaration where its a number value with a getter and setter yes it dont make any difference BUT if you use it where you handle it as an int array or a key or value or a data holder it really makes a difference after some time.

 

Just so you understand it lets say i optimize from that point of view the l2skill of l2jserver after i finish with it i see -5mb memory footprint and i did it with 1 single class now multiple with the number of places where it can be done.

Posted

hehe i like guys like you.

 

if you use it for an average declaration where its a number value with a getter and setter yes it dont make any difference BUT if you use it where you handle it as an int array or a key or value or a data holder it really makes a difference after some time.

 

Just so you understand it lets say i optimize from that point of view the l2skill of l2jserver after i finish with it i see -5mb memory footprint and i did it with 1 single class now multiple with the number of places where it can be done.

 

Smart boy ;) I thought you wouldnt know that and fall in the trap we setup :)

Posted

i see you write something long so lets put some math into play.

 

the sizes are:

byte: 1 byte

short: 2 byte

int: 4 byte

long: 8 byte

 

if we have an array which have 100 value the size of it in allocated memory as follows.

 

primitiveType[] array = new primitiveType[100];

 

so since the array takes 12 byte as a header the calc is:

 

12(header)+100(size)*primitiveType(which can be any datatype listed above).

 

so in that case the allocated memory for each looks like that:

 

byte = 112

short = 212

int = 412

long = 812

 

 

;)

Posted

So according to your estimations, how much do you think you can reduce the average memory usage ( % ) ? Can you get it down to -50% ? How many human-work-hours do you think this will take ? And how are you going to keep updating a pack along with 2-3 other devs, when the competitors ( l2j / l2jfree ) have at least 10 developers coding ?

Posted

So according to your estimations, how much do you think you can reduce the average memory usage ( % ) ? Can you get it down to -50% ? How many human-work-hours do you think this will take ? And how are you going to keep updating a pack along with 2-3 other devs, when the competitors ( l2j / l2jfree ) have at least 10 developers coding ?

 

-50 no but it can save up 25-30mb from memory footprint(at startup) as far as my experimenting goes with l2j so its still good.

Posted

Any one know how to compile they core? it gives me this error...

 

 

 

aepd8o.png

 

 

 

I got the same error any idea how to fix it??? please reply me as soon as possible!!!

  • 1 month later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Greetings, MaxCheaters community! We are the development team behind projects like AdenLand, Classic GvE, TinyEssence, PvPEssence, and several others. Over the years of managing high-traffic servers, we’ve built our own ecosystem of tools for datapack and client editing, simply because standard software often failed to meet our production needs or was too slow. Today, we are opening access to these professional solutions for our colleagues in the dev scene. You can explore our suite of editors and utilities here: 👉 https://la2.tools/ Why choose our tools? Battle-Tested: This software is used daily to maintain and update our own live projects. Efficiency: Designed to automate routine tasks that usually take hours or even days. Stability: Built to handle complex client/server structures where generic tools often crash. We are ready to provide consultations on integrating these tools into your development workflow to make your process faster and more secure.  
    • There is such a topics based on java html services!
    • L2Elixir – Patch 9 Is Live! Since November 28, when L2Elixir officially opened, we’ve been here consistently and with dedication. We sincerely thank everyone who continues to support this major effort to bring back the true legacy of L2Elixir, even after 18+ years. It truly makes us happy to see many old players reunite, just like in the old days, and enjoy the game the way it was meant to be played: without RMT, without bug abusers, and without “paid” clans/CPs that disappear after a month. We continue with vision, stability, and respect for the community. Wishing everyone to Have fun! Changelogs: 🏆 Olympiad Olympiad every Monday & Friday (last day: Friday). Fixed an issue with wrong Class ID caused by the Class Change service. ⚔️ Territory Wars Territory Wars will now be held every Tuesday to increase PvP activity. 🛡️ Antibot General updates and additional security improvements implemented. 🔧 Items Augmentation & Attribute are now allowed on PvP weapons. Implemented Premium Coupon (15 Days) (currently not available). 🎉 Events An Auto Event will begin early morning (05:00) for NA players. 💻 Client Added EXP zones to the Map → Hunting Zones section. Renamed them to “XP Bonus” so they appear at the top of the list.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • I haven't work in Essence but I have transformed mobius projects into fully stable projects, reach out to me in Discord @cerus0130
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..