linkoid
|
  |
| Joined: 03 Feb 2012 |
| Total Posts: 160 |
|
|
| 19 Oct 2014 05:23 PM |
This may not be some ground breaking thing but I'm more curious if my theory is actually true.
So I was reading about string.byte and then found my way to the ASCII Table (http://wiki.roblox.com/index.php?title=File:Ascii_Table.png) and then I was looking at the numbers and the thought occurred to me that a symbol with a lower value would probably take less work to process; and the less work, the less lag. For example lets take "Hello World!". Below are the Ascii representations:
HELLO WORLD 72 69 76 76 79 (32) 87 79 82 76 68
hello world 104 101 108 108 111 (32) 119 111 114 108 100
Every lower case letter (except a,b,c) have one more number they have to process. But ROBLOX uses binary, so it makes even more characters; not only for just lower case, but every few letters you go up from A too! The first number is the decimal representation and the second is the binary.
3 11
4 100
On a larger scale with bigger numbers that could mean about 10 extra characters for just for lowercase instead of uppercase! This would also mean that space is better than an underscore _. This would also explain the reasoning to seeing uppercase more often in programs.
☼ ρσ¡d . I∩dµsτΓ¡εs ☼ |
|
|
| Report Abuse |
|
|
Looah
|
  |
| Joined: 22 Feb 2013 |
| Total Posts: 922 |
|
| |
|
linkoid
|
  |
| Joined: 03 Feb 2012 |
| Total Posts: 160 |
|
|
| 19 Oct 2014 06:06 PM |
um... May I please have a better explanation? Only the naive would believe and answer like that.
☼ ρσ¡d . I∩dµsτΓ¡εs ☼ |
|
|
| Report Abuse |
|
|
meiskewl
|
  |
| Joined: 02 Feb 2012 |
| Total Posts: 90 |
|
| |
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 19 Oct 2014 06:51 PM |
| I think you're worrying about efficiency in the wrong places. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2014 06:51 PM |
| BUILDERMAN IS MY DAD HE SAID IT WORKS |
|
|
| Report Abuse |
|
|
| |
|
GaIlium
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 6383 |
|
|
| 19 Oct 2014 06:53 PM |
| IT MAKES SENSE, UPPERCASE LETTERS HAVE LESS PIXELS THEREFORE LESS LAG |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2014 06:53 PM |
| even if the number is smaller, the string will have the exact same amount of numbers in it. Each ascii character is 1 byte wide, and each character will have to be that one byte even if it only uses one bit of it, for hopefully obvious reasons to you. Processing the numbers also isn't going to be any faster if they are smaller. |
|
|
| Report Abuse |
|
|
FancyFame
|
  |
| Joined: 28 Apr 2012 |
| Total Posts: 234 |
|
|
| 19 Oct 2014 06:56 PM |
OMG U LOVE YOU SO MUCH NO MORE LAG ON MY GAMES IM GONNA BE THE BEST NETWORK PERSON EVERY TY TY TY
IM IN ME MUMS CAR, BROOM BROOM |
|
|
| Report Abuse |
|
|
5mm
|
  |
| Joined: 19 Feb 2012 |
| Total Posts: 796 |
|
|
| 19 Oct 2014 06:58 PM |
Wouldn't matter if you have i5
saltiest of meatboy |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Oct 2014 08:08 PM |
| This is totally wrong. Computers use Binary, not decimal. And for characters, the ANSI standard for it uses 8 binary digits. And since even if you didn't use that format, and made your own, they would still need to use all the same amount of digits. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2014 08:09 PM |
| Lol. Bits, not digits. What was I thinking? |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 19 Oct 2014 09:22 PM |
| If you are right it wouldn't matter. It would be lest than a 1/googolplexian |
|
|
| Report Abuse |
|
|
Elopus001
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 482 |
|
|
| 19 Oct 2014 09:48 PM |
Actually, this is what it should look like. This is what the computer would see. I've also added hex.
HELLO WORLD 072 069 076 076 079 (032) 087 079 082 076 068 48454c4c4f20574f524c44
hello world 104 101 108 108 111 (032) 119 111 114 108 100 68656c6c6f20776f726c64
As you can see they are the same number of characters because the computer has to see the 0 or else it wont know where the end of character is and you will get something else.
If the full number is not included then the computer would see this as the character values.
726 976 767 932 877 982 766 8
Well that can't work because we have the extra 8 without a full number and it only takes values up to 256 because each character has 8 binary digits. Without the zeros above in front of the number, the character would be merged with the others causing random distortion in your text. Also, even if you were right the method would only lower lag by the smallest amount per character so that it would take millions of characters for a difference of a few milliseconds. |
|
|
| Report Abuse |
|
|
Elopus001
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 482 |
|
|
| 19 Oct 2014 09:56 PM |
| Hex is the only proper representation because text is in base 256 and because a computer can't identify the end of a character otherwise, the full number is required. A character can't be 1111, it must be 00001111 and it can't be 1111 instead of 11110000. |
|
|
| Report Abuse |
|
|
linkoid
|
  |
| Joined: 03 Feb 2012 |
| Total Posts: 160 |
|
|
| 22 Oct 2014 06:46 PM |
Aha okay, I get it now. None of you really explained this but, the thing i messed up on is I thought the digits would increase but they actually decrease each value!
First I'll use decimal as the example,
so to go from 1 digit to 2, you need to increase by 10, but to go from 2 digits to 3 you need to increase by 90, and that continues on. A similar case with the other number systems. So by the time we get to the letters in Ascii we are in the 8 bit area. We do not leave that 7 bit area until we get to an Ascii value over 127 then we would go from 1111111 -- 7 digits -- to 10000000 -- 8 digits. But that value is not passed between Uppercase and Lowercase.
☼ ρσ¡d . I∩dµsτΓ¡εs ☼ |
|
|
| Report Abuse |
|
|
linkoid
|
  |
| Joined: 03 Feb 2012 |
| Total Posts: 160 |
|
|
| 22 Oct 2014 06:51 PM |
0.0 nvm what Eloups said! Never knew that before! That completely changes the perspective of computers! Now I believe Computers are even more stupid then before!
(I always say, "Computers are STUPID! You have to tell them every single detail or they don't understand anything! One tiny mistake -- BOOM! -- They have a mental breakdown.")
☼ ρσ¡d . I∩dµsτΓ¡εs ☼ |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 22 Oct 2014 06:54 PM |
facepalm
Stop using computers then, stupid :O |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 06:57 PM |
'(I always say, "Computers are STUPID! You have to tell them every single detail or they don't understand anything! One tiny mistake -- BOOM! -- They have a mental breakdown.")'
In most cases, if anything has a mistake, it will break. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 22 Oct 2014 06:58 PM |
| Now I remember why I hated this forum |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 22 Oct 2014 07:11 PM |
| Lol OP has 400MB RAM get a better PC Bud |
|
|
| Report Abuse |
|
|