This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-16 21:49:17

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

How large are items in lists?

I am thinking of building an array based raycaster and I created this gigantic map by having a sprite scan it and put it in the list. The problem is, I set it to save about 37 minutes ago and it's still saving. All in all, there are about 86,400 numbers in the list where there's 360 items all 240 numbers long. How much Kb/Mb/Gb, does it take up? In how long should I expect it to finish saving?

Last edited by TorbyFork234 (2012-04-16 22:09:23)

Offline

 

#2 2012-04-16 22:44:21

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: How large are items in lists?

About 3.3 MB.
I'm assuming that each list item is two or three characters.

Last edited by trinary (2012-04-16 22:46:09)


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-04-16 22:52:00

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: How large are items in lists?

trinary wrote:

About 3.3 MB.
I'm assuming that each list item is two or three characters.

Each list item was 240 characters long, I shortened it to 171 with 142 items and was able to save it. It is 71,790 bytes large, with 24282 characters in the list. So doing the math, each character takes up about 2.95651 bytes.

Offline

 

#4 2012-04-16 23:04:40

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: How large are items in lists?

I've never saved a list, but does it put each item on a new line? If so, then you'll also need to account for line breaks.


Posts: 20000 - Show all posts

Offline

 

#5 2012-04-16 23:27:59

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: How large are items in lists?

veggieman001 wrote:

I've never saved a list, but does it put each item on a new line? If so, then you'll also need to account for line breaks.

I didn't save the list. I saved the list in the scratch project.

Offline

 

#6 2012-04-16 23:29:02

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: How large are items in lists?

TorbyFork234 wrote:

veggieman001 wrote:

I've never saved a list, but does it put each item on a new line? If so, then you'll also need to account for line breaks.

I didn't save the list. I saved the list in the scratch project.

Oh. Hm.


Posts: 20000 - Show all posts

Offline

 

#7 2012-04-16 23:39:36

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: How large are items in lists?

Oops! I had my map sprite still in there! After I deleted my map sprite, there was 27,337 bytes in the project with 24282 characters in the list so every character is about 1 and an eight of a byte.

Offline

 

Board footer