Intrepid Posted March 1, 2011 Posted March 1, 2011 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.
Xanderॐ Posted March 1, 2011 Posted March 1, 2011 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 :)
Intrepid Posted March 1, 2011 Posted March 1, 2011 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 ;)
Xanderॐ Posted March 1, 2011 Posted March 1, 2011 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 ?
Intrepid Posted March 1, 2011 Posted March 1, 2011 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.
varo Posted March 19, 2011 Posted March 19, 2011 Any one know how to compile they core? it gives me this error... I got the same error any idea how to fix it??? please reply me as soon as possible!!!
AlexCardyz Posted March 20, 2011 Posted March 20, 2011 I have the same error please help us? Uploaded with ImageShack.us The error is reported 3 times :S
Daim Posted March 21, 2011 Posted March 21, 2011 install jdk + jre and add it to the path... and as we add to the route, I really do not know how to fix Thanks for help :c
x-cess Posted March 24, 2011 Posted March 24, 2011 This project is good and with amazing cool stuff inside :) i trust them hope this project will live 4 ever :D
AlexCardyz Posted May 19, 2011 Posted May 19, 2011 Well ... I uninstalled the final eclipse, and re-installed java and ... and my problem was solved :)))))
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now