Post: The Perfect Code Optimizer
07-30-2011, 01:45 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); i know BuC-ShoTz has one of these in his .ff viewer but we might know that his doesn't work as good.
it works but it doesn't replace much of the space, things like if someone is using two tabs it won't replace it with a space or whatever.

i also noticed that his Optimizer does it still includes extra white space as in spaces before and after symbols such as + or >.
well i made my own and it's perfect, the best optimized code you can get, no extra white space what so ever.

i haven't made a program for it, well i have but i'm not releasing it.. how ever i'll give you my Optimizer code.
    
void Optimise()
{
textEditorControl1.Text = textEditorControl1.Text.Replace(" {", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace("{ ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" { ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" (", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace("( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" =", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace("= ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" = ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ;", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace("; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \"", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace("\" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ,", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(", ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" , ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" <", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace("< ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" < ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" >", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace("> ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" > ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" &&", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace("&& ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" && ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace("++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" --", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace("-- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" -- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(Environment.NewLine, "");
}


yeah it has loads of tabs in it so it's extra special Winky Winky
Note : if you use this give me at least a shout in the release, instead of being a leecher!
(adsbygoogle = window.adsbygoogle || []).push({});
07-30-2011, 03:43 AM #2
Kane500
< ^ > < ^ >
Originally posted by Correy View Post
i know BuC-ShoTz has one of these in his .ff viewer but we might know that his doesn't work as good.
it works but it doesn't replace much of the space, things like if someone is using two tabs it won't replace it with a space or whatever.

i also noticed that his Optimizer does it still includes extra white space as in spaces before and after symbols such as + or >.
well i made my own and it's perfect, the best optimized code you can get, no extra white space what so ever.

i haven't made a program for it, well i have but i'm not releasing it.. how ever i'll give you my Optimizer code.
    
void Optimise()
{
textEditorControl1.Text = textEditorControl1.Text.Replace(" {", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace("{ ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" { ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" (", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace("( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" =", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace("= ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" = ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ;", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace("; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \"", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace("\" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ,", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(", ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" , ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" <", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace("< ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" < ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" >", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace("> ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" > ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" &&", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace("&& ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" && ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace("++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" --", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace("-- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" -- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(Environment.NewLine, "");
}


yeah it has loads of tabs in it so it's extra special Winky Winky
Note : if you use this give me at least a shout in the release, instead of being a leecher!


Do you think you can give me the program :/. I'll let you test my new edit (not that you really care :p)
07-30-2011, 06:15 AM #3
cjmurder123
What do I say here?
EliteMossy's code optimizer works just fine. I don't ever see any white space in that.

But thanks for the code :y:
07-30-2011, 04:56 PM #4
Blackstorm
Veni. Vidi. Vici.
It technically doesn't optimize code; it compresses it. :p
07-30-2011, 04:57 PM #5
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
i know BuC-ShoTz has one of these in his .ff viewer but we might know that his doesn't work as good.
it works but it doesn't replace much of the space, things like if someone is using two tabs it won't replace it with a space or whatever.

i also noticed that his Optimizer does it still includes extra white space as in spaces before and after symbols such as + or >.
well i made my own and it's perfect, the best optimized code you can get, no extra white space what so ever.

i haven't made a program for it, well i have but i'm not releasing it.. how ever i'll give you my Optimizer code.
    
void Optimise()
{
textEditorControl1.Text = textEditorControl1.Text.Replace(" {", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace("{ ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" { ", "{");
textEditorControl1.Text = textEditorControl1.Text.Replace(" (", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace("( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ( ", "(");
textEditorControl1.Text = textEditorControl1.Text.Replace(" =", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace("= ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" = ", "=");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ;", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace("; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ; ", ";");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \"", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" \" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace("\" ", "\"");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ,", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(", ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" , ", ",");
textEditorControl1.Text = textEditorControl1.Text.Replace(" <", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace("< ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" < ", "<");
textEditorControl1.Text = textEditorControl1.Text.Replace(" >", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace("> ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" > ", ">");
textEditorControl1.Text = textEditorControl1.Text.Replace(" &&", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace("&& ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" && ", "&&");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace("++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ++ ", "++");
textEditorControl1.Text = textEditorControl1.Text.Replace(" --", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace("-- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" -- ", "--");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", "");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(" ", " ");
textEditorControl1.Text = textEditorControl1.Text.Replace(Environment.NewLine, "");
}


yeah it has loads of tabs in it so it's extra special Winky Winky
Note : if you use this give me at least a shout in the release, instead of being a leecher!


nice you finally released it?
07-30-2011, 05:50 PM #6
Correy
I'm the Original
Originally posted by cjmurder123 View Post
EliteMossy's code optimizer works just fine. I don't ever see any white space in that.

But thanks for the code :y:

it doesn't not fully..
look, if you had two tabs it will only take away one of them

---------- Post added at 06:50 PM ---------- Previous post was at 06:48 PM ----------

Originally posted by D34TH View Post
nice you finally released it?


nope, it's personal use only.
i've made a new beautify code aswell, shorter coding.
and also i made a compress which only compresses every thread, so it's compressed threads so it would look like this..
    
Blah1(){self iprintln("boo");}
blah2(){self iprintln("boooo");}

it just makes separate lines Winky Winky
07-30-2011, 10:01 PM #7
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
it doesn't not fully..
look, if you had two tabs it will only take away one of them

---------- Post added at 06:50 PM ---------- Previous post was at 06:48 PM ----------



nope, it's personal use only.
i've made a new beautify code aswell, shorter coding.
and also i made a compress which only compresses every thread, so it's compressed threads so it would look like this..
    
Blah1(){self iprintln("boo");}
blah2(){self iprintln("boooo");}

it just makes separate lines Winky Winky


ive seen a code that does that

edit: btw the code you made for optimising is really slow, to many functions trying to run at once is making it slow
07-30-2011, 11:32 PM #8
Correy
I'm the Original
Originally posted by D34TH View Post
ive seen a code that does that

edit: btw the code you made for optimising is really slow, to many functions trying to run at once is making it slow


thats fine, it still does the job perfect Winky Winky
07-30-2011, 11:40 PM #9
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
thats fine, it still does the job perfect Winky Winky


true but faster is better

The following user thanked INSAN3LY_D34TH for this useful post:

Blackstorm

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo