Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Erik CoolBreeze
|
Posted - 2011.05.08 03:14:00 -
[1]
Edited by: Erik CoolBreeze on 08/05/2011 03:16:04 I have been working through the eve api and noticed it is incredibly slow. After a few tests I noticed it can take up to 120 seconds for the api server to process 25 api calls from server/cli. (which means a 1000 calls could take upto 90 minutes!) I am using simpleXML (php) which is DOM based, has anyone had better results with SAX based calls? The xml files are generally very small so DOM should work just fine.
<rant> I have nothing nice to say about the api system, it is slow, some attributes make no sense and are not consistent across all api calls. Like, charID in some, and characterID in others or more specifically the industry jobs api call: installedInSolarSystemID - the solar system a job is installed in, containerLocationID - Location of the container. In general, this is the solar system ID. And that is just one out of many double values. Or a generic attribute that changes value type (in different situations) without a flag to set the situation, making me have to go through one of the datadump tables to see what the value represents. </rant> And while you are busy reading this, you might not have realised that this is in fact my signature. |
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.05.08 03:51:00 -
[2]
Its what ever server your using.
As far as consistently named attributes, yes they are bad about that, but its not that hard to deal with.
POS-Tracker 3.0 Hosting |
Erik CoolBreeze
|
Posted - 2011.05.08 04:18:00 -
[3]
has nothing to do with the server I am using. And while you are busy reading this, you might not have realised that this is in fact my signature. |
Captain Thunk
Sniggerdly
|
Posted - 2011.05.08 06:49:00 -
[4]
CCP throttle down sites that access many sheets within a timeframe. This is what is happening to you.
|
Tonto Auri
Vhero' Multipurpose Corp
|
Posted - 2011.05.09 23:03:00 -
[5]
Originally by: Erik CoolBreeze I am using simpleXML (php) which is DOM based, has anyone had better results with SAX based calls? The xml files are generally very small so DOM should work just fine.
It WORKS fine. If you can't build an efficient library yourself, use one of the existing solutions. -- Thanks CCP for cu |
Zeta Zax
|
Posted - 2011.05.10 15:38:00 -
[6]
1. I'm rather curious about what you could be doing that requires that many successive calls to the API. Killboard? Forum? Alliance oriented?
2. Is the bottleneck in getting the API data or in processing the API data? If it is the former then the style of xml processor you use won't matter.
3. Yeah pretty much anything CCP touches ends up turning to crap. Is crap. Or started off as crap.
|
Erik CoolBreeze
Amarr eve-universe.net
|
Posted - 2011.05.12 09:32:00 -
[7]
Edited by: Erik CoolBreeze on 12/05/2011 09:35:21 Not so much that I need it, but I expect the project I am working on to become quite popular over time, with 2500 registered users as a definite possibility.
And yes, after some testing it is indeed the api server that is damn slow. Even though I have set up my project in such a way that character updates only get queued if the user actually logs in or someone views their profile. As well as the usual one hour time delay.
The specific culprit seems to be the mailbody api fetch. Oh well, I guess I will just have to deal with it.
Of course there are plenty other silly mistakes in their system, like random whitespaces - reason="something \xA; (without the \) floating around etc.
If I still lived in Europe I would've applied for a job with them to fix silly things like this, and even though I have not had much run-ins with in-game bugs (new player) my enthusiasm to play the game is scaling down every day when I read the forums.
Oh well, c'est la vie. professional web development for the eve community |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |