Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2017-08-11 22:40:54

Slabdrill
Formerly 12345678908642
From: canada
Joined: 2015-08-15
Posts: 3,402
Website

What takes worlds so long to appear?

if you use something like gregbot you can get a world in like 5 seconds while the worlds tab takes 2 minutes


suddenly random sig change

Offline

#2 2017-08-11 22:52:05

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: What takes worlds so long to appear?

what happends when you click on the "Worlds" tab:

what gregbot does:
1) takes world id
2) gets block ids in that world
3) compate block ids to the colours he has in list
4) displays the picture

so all he need is the list of block ids and it's colours on the map. that's it

1) Client requests for the list of your worlds.
2) you revieve this list
3) 1 by 1 client recieves information  (world data) about the world.
3) it creates a whole world from that data with legit blocks (not just a bunch of block ids in the matrix, real playable world)
4) it takes minimap from that world
5) displays the minimap

so, compare it yourself
Client creates the whole world
Gregbot has a list of colours

Why so? because greg has a specific order to do. do minimaps.
Client on the other hand is a large project. And it's really messed up in terms of code and optimization. Throwing new system to qucikly display minimaps is like adding oid to the fire

Offline

#3 2017-08-12 00:36:57

Slabdrill
Formerly 12345678908642
From: canada
Joined: 2015-08-15
Posts: 3,402
Website

Re: What takes worlds so long to appear?

can you confirm if the following assertion is true:
the answer to my question is "it needs to load the minimaps"


suddenly random sig change

Offline

#4 2017-08-12 00:46:14

John
Member
Joined: 2019-01-11
Posts: 1,974

Re: What takes worlds so long to appear?

Gosha wrote:

<snip>
what gregbot does:
1) takes world id
2) gets block ids in that world
3) compate block ids to the colours he has in list
4) displays the picture

so all he need is the list of block ids and it's colours on the map. that's it

1) Client requests for the list of your worlds.
2) you revieve this list
3) 1 by 1 client recieves information  (world data) about the world.
3) it creates a whole world from that data with legit blocks (not just a bunch of block ids in the matrix, real playable world)
4) it takes minimap from that world
5) displays the minimap
<snip>

They essentially do the same thing. They both load worlds from the database, parse the blocks and generate a minimap image.

I think its the amount of requests is the reason why it takes so long.

1 world (from Greg)

vs

100+ worlds (for old EE players)


PW?scale=2

Offline

#5 2017-08-12 02:03:19

Slabdrill
Formerly 12345678908642
From: canada
Joined: 2015-08-15
Posts: 3,402
Website

Re: What takes worlds so long to appear?

the reason i said that about greg is because i have NO idea how greg does it; does it go through every world ID until it finds one of the right name or does it have an actual way of doing it?


suddenly random sig change

Offline

#6 2017-08-12 05:49:37

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: What takes worlds so long to appear?

Greg does it the same way as ee.
Worlds are stored in database table "worlds"
You give Id of the world - it returns info about it such as: name,  owner id, likes, worlddata(all blocks)
You take that worlddata and do whatever you want
Greg converts it in his way
Ee in it's way

Offline

#7 2017-08-12 15:37:39

John
Member
Joined: 2019-01-11
Posts: 1,974

Re: What takes worlds so long to appear?

Slabdrill wrote:

the reason i said that about greg is because i have NO idea how greg does it; does it go through every world ID until it finds one of the right name or does it have an actual way of doing it?

Oh I understand what you're talking about now. My guess is that the Everybody Edits Staff has an index that allows you to search many DatabaseObjects by a Property Expression which in this case is called "name". This would yield all the results that contain or match whatever is sent with the index.


PW?scale=2

Offline

#8 2017-08-12 17:16:07

Jesse
Member
From: Antartica?
Joined: 2015-02-16
Posts: 69
Website

Re: What takes worlds so long to appear?

GrebBot uses my API to grab minimaps, this API can load minimaps as fast as your download speed can handle (aka in a fraction of a millisecond), the reasoning for this is because I save every minimap in a database and indexed it by worldId, this way it can instantly grab the image data. However, if you want to load lets say... 30 worlds, it would probably take way longer. That's because you're requesting them one by one.

The way EE loads your worlds is by requesting every world one by one, which is extremely inefficient. I've fixed this issue by simply loading all your worlds at once by using only one request.


Thanks a lot, Sensei1, for drawing this amazing avatar for me <3

Sig.php

Offline

Wooted by:

#9 2017-08-12 17:37:03

peace
Member
From: admin land
Joined: 2015-08-10
Posts: 9,226

Re: What takes worlds so long to appear?

Jesse wrote:

GrebBot uses my API to grab minimaps, this API can load minimaps as fast as your download speed can handle (aka in a fraction of a millisecond), the reasoning for this is because I save every minimap in a database and indexed it by worldId, this way it can instantly grab the image data. However, if you want to load lets say... 30 worlds, it would probably take way longer. That's because you're requesting them one by one.

The way EE loads your worlds is by requesting every world one by one, which is extremely inefficient. I've fixed this issue by simply loading all your worlds at once by using only one request.

wait u fixed that thanks nowi can load my profile much easier


peace.png

thanks hg for making this much better and ty for my avatar aswell

Offline

#10 2017-08-14 02:17:19, last edited by Slabdrill (2017-08-14 02:17:48)

Slabdrill
Formerly 12345678908642
From: canada
Joined: 2015-08-15
Posts: 3,402
Website

Re: What takes worlds so long to appear?

I still don't have an answer to my question. Is it the minimaps or the actual finding of the worlds? If it's the former, it'd be useful to have a way to not show minimaps.


suddenly random sig change

Offline

#11 2017-08-14 09:10:58

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: What takes worlds so long to appear?

Slabdrill wrote:

I still don't have an answer to my question. Is it the minimaps or the actual finding of the worlds?

The minimaps. Its basically downloading each world one by one and converting them to minimaps.

Slabdrill wrote:

If it's the former, it'd be useful to have a way to not show minimaps.

If its your own worlds, the 'mine' option in the rooms bit, although it would also be good if there was a way to show rooms by another player too.

Offline

LukeM1502698258673089

Board footer

Powered by FluxBB

[ Started around 1713604296.5872 - Generated in 0.320 seconds, 12 queries executed - Memory usage: 1.51 MiB (Peak: 1.67 MiB) ]