| Author |
Message |
Jean-Claude
Premium


Joined: May 02, 2003
Posts: 15
Location: FRANCE
|
Posted:
Thu Jul 24, 2003 3:34 am |
  |
Hello everybody
perhaps this answer have ever a replybut i can t found it
So this is the question
I find that versions 6.7 and 6.8 are slower than 6.5 and 6.6
It is an impression?
Thank you for your answers. |
_________________
 |
|
      |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 24, 2003 6:53 am |
  |
Run analyzer to see how many sql queries you're generating. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Jean-Claude
Premium


Joined: May 02, 2003
Posts: 15
Location: FRANCE
|
Posted:
Thu Jul 24, 2003 8:13 am |
  |
i know and can reply because i ve got a sytem on my website who telling me this
On the Home page ~ 120 + |
_________________
 |
|
      |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Thu Jul 24, 2003 9:13 am |
  |
If you want faster Nuke speed with ANY nuke version, what you will need to do is close the gaps in all the files code.
A webpage is read from top to bottom. When you implement new modules, or even existing ones, that have huge gaps in the code (possibly from their editors) the code is massively spaced. So it takes a PC longer to read everything (inlcuding the gaps).
Condensing the code MANUALLY (Not with some editors functions) will DRASTICALLY increase your nuke sites speed. And that means doing it in EVERY module, block and active file. Otherwise, it will only speed up with those particular accessed files.
I discovered this when hacking the hell out of Nuke 5.5. My site was lagging based on the amount of info I posted on the front page. But not having much graphics, should have loaded fast. I checked the code, closed the gaps, and pages opened in less than 1 second most times except for the initial uncached entry.
When I upgraded to 6.0 same thing. So yes, you need to optimize the code and take out some un-necessary junk to make it run faster.
On the personal side, I have been considering on releasing the optimized code of the original files, but just haven't had the chance to put it out.
But thats all you have to do. Let me know your results if you do it. Hope this helps. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
MikeMiles
Lieutenant


Joined: May 29, 2003
Posts: 231
|
Posted:
Thu Jul 24, 2003 10:13 am |
  |
I hope you don't mean white space. If you do, there's something wrong with your php interpreter because it should be ignoring blank lines, spaces, and comments. There will be some speed difference but it shouldn't be to the magnitude you're talking about.
Look at his pages. They're 250K in size, lots of database calls, and he's pulling stuff like little graphics off other servers. There's also 17 other domains on the server, and if their traffic picks up it will affect his site. Before resorting to butchering up the code to remove spaces, I think he has other areas he could easily optimize first. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 24, 2003 10:24 am |
  |
Oh no 250k in size is already doubling the normal front page size. Did you take a look at the HTML source? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Thu Jul 24, 2003 10:27 am |
  |
Nope, nothing wrong on my end and yes I mean white space. Im not saying to make it look like this:
if ((!$email) || ($email=="") || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$email))) $stop "<center>"._ERRORINVEMAIL."</center><br>"; if (strrpos($email,' ') > 0) $stop = "<center>"._ERROREMAILSPACES."</center>";
if ((!$uname) || ($uname=="") || (ereg("[^a-zA-Z0-9_-]",$uname))) $stop =
What im saying is if you have this:
} else {
include("header.php");
OpenTable();
echo "<center><font class=\"option\">Error!</font><br><br>";
echo "<font class=\"option\">"._YOUBAD."</font></center>";
CloseTable();
include("footer.php");
}
} else {
include("header.php");
OpenTable();
echo "<font class=\"option\">"._ACTDISABLED."</font>";
CloseTable();
include("footer.php");
}
Which is how it comes as an original package, then you need to make it look like this:
} else {
include("header.php");
OpenTable();
echo "<center><font class=\"option\">Error!</font><br><br>";
echo "<font class=\"option\">"._YOUBAD."</font></center>";
CloseTable();
include("footer.php");
}
} else {
include("header.php");
OpenTable();
echo "<font class=\"option\">"._ACTDISABLED."</font>";
CloseTable();
include("footer.php");
}
Why? White space is not 100% ignored and as PCs read the page down, it adds time for itto acknowledege the white space eixstence. So your speed is reduced. I have had quite a few people use some optimized files, different PC's from all over the world, and yes, what i am saying is 100% true.
As for jaques page, yes he needs to reduce the size of the page, but optimizing the code as an example, my home page is about 35kb. Not optimized its about 56kb. same goes for the file sizes like index.php. its not drastic, but your overall files will be reduced at least 2kb at the minimum. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
nathanraymond
Premium


Joined: Jan 17, 2003
Posts: 121
Location: Rhode Island
|
Posted:
Thu Jul 24, 2003 10:36 am |
  |
is there a text editor that you have used before that would speed this process of going through all the files up?
thanks nathan |
|
|
    |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Thu Jul 24, 2003 10:46 am |
  |
Hi Nathan,
ABSOLUTELY NOT. EVen though I use ACEHtml, and it does have that feature, it will not work. It only applies to HTML, and if you start using the code condensing tool for php, you will be in a world of crap fast. The reason is the changes are permanent and irreversible once you apply it.
So ya gotta do it the old fashhioned way like I did. should only take about 1 day working all the ORIGINAL files, add more for your add-ons, blocks, etc. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
nathanraymond
Premium


Joined: Jan 17, 2003
Posts: 121
Location: Rhode Island
|
Posted:
Thu Jul 24, 2003 11:59 am |
  |
thanks for getting back to me that would have been a big mistake had I gone that route!!!  |
|
|
    |
 |
Jean-Claude
Premium


Joined: May 02, 2003
Posts: 15
Location: FRANCE
|
Posted:
Thu Jul 24, 2003 12:37 pm |
  |
Oki the first solution is to delete all the blank space in the code
I va ever do something in all my theme too with HTML Compress
example :
| Code: |
<table cellspacing=0 cellpadding=0 border=0 >
<tr>
<td>
</td>
</tr>
</table> |
is now
| Code: |
| <table cellspacing=0 cellpadding=0 border=0 ><tr><td></td></tr></table> |
And i think it s a good thing too |
_________________
 |
|
      |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Thu Jul 24, 2003 12:39 pm |
  |
No problem, hey hows Germany these days? I havent been over there at all this year. Man I feel the itch to hit the Autobahn after being stuck in slow driving left lane traffic yesterday. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Thu Jul 24, 2003 12:40 pm |
  |
So Jean, (Oops I called you Jacque before, sorry) its working alittle faster now right? but you will need to do it to the WHOLE file, and EACH file. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
nathanraymond
Premium


Joined: Jan 17, 2003
Posts: 121
Location: Rhode Island
|
Posted:
Fri Jul 25, 2003 5:16 am |
  |
| allevon wrote: |
| No problem, hey hows Germany these days? I havent been over there at all this year. Man I feel the itch to hit the Autobahn after being stuck in slow driving left lane traffic yesterday. |
the highways are still there...at the moment though I am living up north near hamberg...there autobahn is usually in a jam.... but if you go south stuttgard munchen---now thats what you call driving--- I have driven 260 kmh for a good hour or two earlier this year on a trip to salzburg and I tell ya thats something else!!! |
|
|
    |
 |
allevon
Site Mod


Joined: Nov 22, 2002
Posts: 716
Location: New Jersey
|
Posted:
Fri Jul 25, 2003 5:24 am |
  |
Yea Ive been up your way and once you hit Cologne, the jams start, but I use a friends Mercedes 600 v-12 and usually do the runs between Frankfurt and Nuremberg on A5 or 3? but I top out at 335kph. Yep, I cant get enough of it. As a matter of fact, I don't think I ever use brakes and I don't think I ever drove in the right lane on the autobahn, except for ausfahrt lol. |
_________________ "Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor! |
|
    |
 |
|
|