The following test took 62ms in Java. In a game with a lot of concurrent users requesting small piece of data, this is really bad. I don't know any data structure that is has even 1ms for these operations.
net.sf.json.JSONArray array = new net.sf.json.JSONArray();
Util.timeStart();
array.add(name);
array.add(userID);
array.add(status);
Util.timeStop();
EDIT:
Use org.json.JSONArray instead.
- Board index SmartFoxServer Pro/Basic 1.x Server Side Extension Development
- Search
-
- It is currently 11 Feb 2026, 11:13
- All times are UTC
Anyone notice JSON is really slow?
Post here your questions about Actionscript and Java server side extensions development.
Return to “Server Side Extension Development”
Jump to
- SmartFoxServer 2X
- ↳ SFS2X Questions
- ↳ SFS2X Client API
- ↳ SFS2X ActionScript 3 API
- ↳ SFS2X C# API
- ↳ SFS2X iPhone / iPad / OSX API
- ↳ SFS2X Java / Android API
- ↳ SFS2X HTML5 / JavaScript API
- ↳ SFS2X C++ API
- ↳ RedBox 2X
- ↳ 2X Features Wish List
- SmartFoxServer Pro/Basic 1.x
- ↳ SmartFoxServer 1.x Discussions and Help
- ↳ Server Side Extension Development
- ↳ BlueBox
- ↳ RedBox
- ↳ Features Wish List
- ↳ The Bug Trap
- ↳ Client API - SFS 1.x
- ↳ .Net / Unity3D API
- ↳ iPhone Objective-C API
- ↳ Silverlight API
- ↳ Java2SE / Android Client API
- ↳ Other Client API
- OpenSpace Support
- ↳ OpenSpace v2 discussions and help
- ↳ OpenSpace v1 discussions and help
- SmartFoxBits Support
- ↳ SmartFoxBits for SFS 2X
- ↳ SmartFoxBits for SFS 1.x
- Community
- ↳ Job offers and requests
- ↳ The Gallery