Thanks for your question!
I think that the capacity initial value equal to 50 is understandable.But the internal array's capacity initial value equal to 50 is a bad design.
In actual fact,Javascrpt supports modifiable array itself,so we can initialize an array with no initial value.
It's only I who has been working for the JsJava project off hours.I want to optimize the JsJava classes code long way back,but I have no more time on that.
The size of jsjava-2.0.js is almost 400kb.I need someone help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this.capacity=50;
Why was it filled with 50?
Thanks for your question!
I think that the capacity initial value equal to 50 is understandable.But the internal array's capacity initial value equal to 50 is a bad design.
In actual fact,Javascrpt supports modifiable array itself,so we can initialize an array with no initial value.
It's only I who has been working for the JsJava project off hours.I want to optimize the JsJava classes code long way back,but I have no more time on that.
The size of jsjava-2.0.js is almost 400kb.I need someone help.