RetroX
|
|
Posted on: October 20, 2010, 02:33:38 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
Random suggestion, but you could do what jQuery, Google, and a few other sites do for code.
You can offer development and generic versions of the source codes. The development version includes comments and spaces, whereas that is all removed from the other version, to save space, download time, and compile time.
I dunno, but it seems like it might be a good idea. Probably doesn't make sense to do it now, though.
Spaces and tabs take up a surprising amount of space.
|
|
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
RetroX
|
|
Reply #2 Posted on: October 20, 2010, 03:05:54 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
GCC already strips comments and spaces from the compiled version of code(obviously), so this would have no effect on game executable size.
I know that. It still spends time going through those characters. The headers are already pre-compiled. On the first run, all of the headers are compiled, and after that, they aren't compiled again. That's not as much the point as downloading them all on the initial run.
|
|
« Last Edit: October 20, 2010, 03:59:50 pm by RetroX »
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
Josh @ Dreamland
|
|
Reply #4 Posted on: October 20, 2010, 08:12:22 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
I'm way too lazy to do that, but since we keep stable releases under tags/, I find that a viable suggestion. Wait until Ism finishes the YAML and run it by her, because ENIGMAbot handles all tag pushes. It's likely it could remove excessive newlines and whitespace while doing that.
I really like the idea. If Ism refuses, I'll look into it personally.
@Rusky- He was thinking about download time for SVN checkouts. My code is like, 30% removable.
Thought: This does interfere with licenses. Perhaps we should only strip comments not beginning with /** or containing less than 300 characters. (habit: )*/
|
|
« Last Edit: October 20, 2010, 08:16:00 pm by Josh @ Dreamland »
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
IsmAvatar
|
|
Reply #6 Posted on: October 21, 2010, 10:34:29 am |
|
|
LateralGM Developer
Location: Pennsylvania/USA Joined: Apr 2008
Posts: 877
|
At the moment, I'm hesitant about this because of the value of keeping Enigma readable, so that if the user needs to modify something, they can read the comments. However, as Enigma progresses away from direct source modification and into Definitions and integrated C++ and such, the comments are becoming less useful in the release. Also, developers who do wish to modify the source still should probably be using the testing branch or dev-trunk anyways.
Also, in the stable branch, we can get rid of a few things that are also not needed, like pluginsource. If we could create a set of exact rules on what to do, I can program the bot to do it.
That said, luis has a point. But if not the SVN, where?
|
|
|
Logged
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #9 Posted on: October 21, 2010, 05:22:09 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Like I said, I won't personally be fucking with it. But if Ism has nothing to do one day...
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
|
RetroX
|
|
Reply #14 Posted on: October 22, 2010, 04:09:56 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
For the past 9 years or so I have had 50-100MB/s connections.
Holy fucking shit, that's amazing. I'm sorry, but I'm lucky to get 1 MB/s on ANY server, and if you get 50, that's incredible. Per second? That's up to 12 seconds to download a CD ISO. I get 8 MB/s max. If I had FiOS, I'd get 40. That's still not close to 100.
|
|
« Last Edit: October 22, 2010, 04:12:35 pm by RetroX »
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|