Welcome Guest, Not a member yet? Register   Sign In
Slow loading site: CI or bad coding?
#1

[eluser]codex[/eluser]
Hey all,

I'm currently working on http://www.graffr.com (it's about Graffiti/streetart). I think I did a pretty ok job on the coding, but somehow it's slow as hell. I moved the site from one server to the other, thinking it was the server that was slow (I moved because of other problems), but on the new server I get basically the same poor performance.

The profiler isn't revealing any odd numbers, they're actually pretty good I think (< 1sec). Also benchmarking produces quite good numbers (10ms or so) per page. But still, a very basic page like the signup page takes about 8 secs to load. Needless to say that's very long. Even cached pages take forever!

Any ideas on what could cause this slow performance? I'm puzzled...

PS: I have indexes on the DB in case you might be thinking of that Wink
#2

[eluser]Michael Wales[/eluser]
It's loading decently fast for me... less than a second when viewing an actual piece of artwork, about 3-4 seconds on the home page.


Are you using legimimate thumbnails for these images, or just scaling down a larger version via HTML?

I think it may just be image downloading that is taking so long or possibly where the servers are located.


From Seattle, signup page took 2 seconds.
#3

[eluser]codex[/eluser]
[quote author="walesmd" date="1193208315"]It's loading decently fast for me... less than a second when viewing an actual piece of artwork, about 3-4 seconds on the home page.


Are you using legimimate thumbnails for these images, or just scaling down a larger version via HTML?

I think it may just be image downloading that is taking so long or possibly where the servers are located.


From Seattle, signup page took 2 seconds.[/quote]


Those are real thumbnails yes. I think it might have something to do with downloading the thumbs too, but that doesn't explain why the signup page (and other simple pages) is loading slow (at least here it does). The server is located in Texas I believe.

But in theory, a plain HTML-page outside of the CI dir, but on the same server should also load slow(er), right? But this one flies. Is there anything I should/could be looking into regarding settings?
#4

[eluser]woopsicle[/eluser]
it is a bit sluggish.. not that bad though.

have you turned off CI logging? that can slow things down.

also, what kind of hosting are you using? shared hosting? vps (what are the specs)? etc
#5

[eluser]codex[/eluser]
[quote author="woopsicle" date="1193210432"]it is a bit sluggish.. not that bad though.

have you turned off CI logging? that can slow things down.

also, what kind of hosting are you using? shared hosting? vps (what are the specs)? etc[/quote]

CI logging is off. And server, not sure. I read something about dual xeon? I forgot. It's a hostgator shared server. On the other server (vps) I had the same sluggish behavior.
#6

[eluser]Rick Jolly[/eluser]
It's probably the javascript. The signup page is loading scriptaculous and jquery.
#7

[eluser]Michael Wales[/eluser]
The js could definitely slow things down a bit...
#8

[eluser]nirbhab[/eluser]
Please check this link which might help you out in speed optimization.

http://www.websiteoptimization.com/servi...raffr.com/
#9

[eluser]llbbl[/eluser]
Course this might get your hostgator account locked ...

http://www.joedog.org/JoeDog/Siege

SIEGE is an http regression testing and benchmarking utility. It was designed to let web developers measure the performance of their code under duress, to see how it will stand up to load on the internet.
#10

[eluser]gops[/eluser]
I had a similar problem when I was using lots of jquery plugins with bunch of css files.

Try to combine those files in one single file.

Don't include the files which you are not using in a page. Like , you are using jquery UI plugin in signup page , draggable and droppables , there ain't any need for them there.

Also pack javascript with packer such as ,

http://www.google.com/search?q=javascrip...IN244IN244




Theme © iAndrew 2016 - Forum software by © MyBB