Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

Habbo Development Discuss, [DEV] Holograph Emulator - Total Database Pooling at Habbo Hotel forum; Quote: Originally Posted by cecer1 Question: Is it true that a foreach loop is slower than a for loop? If ...




Reply
Thread Tools
[DEV] Holograph Emulator - Total Database Pooling
 
 
The mofo'ing Woodpeckah

Rank: Alpha Member


Reply With Quote
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 3,428
11-01-2008, 07:32 PM
 
Quote: Originally Posted by cecer1 View Post
Question: Is it true that a foreach loop is slower than a for loop? If so then I will edit all of the foreach loops I can.
[Only Registered and Activated Users Can See Links. Click Here To Register...]

Basically the test result is that foreach is less efficient than a good 'ole for loop in most cases, but that it only matters in high-performance code. (not as high-performance as Holo should be)
It does matters, but not that much.
Imo you should foreach when it's more elegant and easier and when you're working with collections, for otherwise.
Just ma two cents.

- Nillus
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-01-2008, 08:00 PM
 
Thanks Nillus
I will leave them in then.

EDIT: One away from 200 posts :P
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-03-2008, 04:23 AM
 
Just thought i'd give a little update on whats done

PHP Code:
Navigator 100%
Categories 100%
Group Badges 100%
Dancing 100%
Catalogue 100%
Info-matic 100%
Guest Rooms 100%
Public 
Rooms 100%
Moodlight 100%
Console 50% - Working on The bugged parts
Events 
100%
Trading 100%
Call for Help 100%
Speech commands 90% ( The odd one like userinfo etc need fixing)
Trax 100%

Obviously this isn't everything that's fixedIts just a  update on how the development is progressing 
As you can see the server is making good progress.

Release date is UNKNOWN as there is still a LOT to fix

Last edited by NitroHabbz; 11-04-2008 at 02:49 AM.
 
 
permalink
 

 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: Jun 2008
Location: UK
Posts: 154
11-03-2008, 10:05 PM
 
I fixed the stickies xD
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-03-2008, 10:22 PM
 
Quote: Originally Posted by Oliver9500 View Post
I fixed the stickies xD
Mind sending the code to my PM inbox? or over msn. habbzhotel@live.co.uk

EDIT: Trax finished

Last edited by NitroHabbz; 11-04-2008 at 01:02 AM.
 
 
permalink
 

 
Erday im hustlin

Rank: Member


Reply With Quote
Blog Entries: 4
 
Join Date: Dec 2007
Location: Sandaygo
Posts: 699
11-04-2008, 01:39 AM
 
Sick, i hope it stays behind v24.
 
 
permalink
 

 
Holo26 :)



Reply With Quote
 
Join Date: Aug 2008
Location: 127.0.0.1
Posts: 1,143
11-04-2008, 01:47 AM
 
Quote: Originally Posted by Bapestar View Post
Sick, i hope it stays behind v24.
All do respect, but are you fucking crazy?
V24?
OMG dude, that's some of the funniest crap I've heard from you in a long, long time. Dude get real, v24 is really nothing.

V26 is something that people (us, we) Want and are trying to work on.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-04-2008, 02:38 AM
 
Quote: Originally Posted by TimesCoder View Post
All do respect, but are you fucking crazy?
V24?
OMG dude, that's some of the funniest crap I've heard from you in a long, long time. Dude get real, v24 is really nothing.

V26 is something that people (us, we) Want and are trying to work on.
OK here is my 2 cents on it.

I would rather run a stable V23/V24 Server than running a V26 Server with the current database management. and trust me this "Total Pooling" is stable... Soon as all the bugs are ironed out it will be a damn good server

I'm not saying we can't do V25/V26 as we could, but we have no intentions of going past V24 at the present moment in time... V25 May be considered but thats the furthest we'd go i think.

By the time V26 is 100% Habbo UK will be on V28 V29...

No disrespects to the V26 Coders, your doing a good job, but i don't see the point in trying to keep up with UK just because a few habboons are feature happy.

I understand what your saying CJ, but whats the point having all these V26 Features in a unstable server. Hence why we are stabilising V24.

Stable V24 > Unstable V26 in my opinion


Any decent Private Server owner would be concerned with the Stability first not new features

"OMG Habbo has V27. CODE V27 SUPPORTZ!!!ONEONEONE"
 
 
permalink
 

 
Erday im hustlin

Rank: Member


Reply With Quote
Blog Entries: 4
 
Join Date: Dec 2007
Location: Sandaygo
Posts: 699
11-04-2008, 02:54 AM
 
Quote:
All do respect, but are you fucking crazy?
V24?
OMG dude, that's some of the funniest crap I've heard from you in a long, long time. Dude get real, v24 is really nothing.

V26 is something that people (us, we) Want and are trying to work on.
I said i want this to be behind v24 so i want this to be v23, btw thas what they've said so i'll just keep waiting for release and in my opinion i dislike the version 26 from habbo i think is poop and well one thing you and no one can do is changing others beliefs. I see your point is good to be uptodate but i really like rev23, oh well thas just what i think.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-04-2008, 03:13 AM
 
Please don't start another Version Debate and keep to the topic, thanks.

Friends List is nearly done, trax is working and I haven't found any more connection issues which is perfect.


This will be R23/R24 till I get it as stable as possible then I might work on R25 then make that stable then R26 and so on.

I will not jump when a new release comes out.
 
 
permalink
 

 
Holo26 :)



Reply With Quote
 
Join Date: Aug 2008
Location: 127.0.0.1
Posts: 1,143
11-04-2008, 03:16 AM
 
Nice point cecer1.

But still, I am saying you know that v25-v26 is nearly stable, well not that stable, just mostly fixes are included. On my hotel, I have a stable v25 server, and everything is working perfectly, I added the BB Fix, and I added the commands and everything, and it's working perfect.

I understand most people want it v24, v23 and etc.. but regardless, kinda weird going backwards, when this could of been done before.

Honestly, I will help you all with this if you ALLOW me to.

first, what I wanna do is find the pets and rollers and fix those.
 
 
permalink
 

 
Holograph Developer

Rank: Member


Reply With Quote
 
Join Date: Aug 2007
Location: Cardiff, Wales
Posts: 1,103
11-04-2008, 08:50 AM
 
Cecer, when you finally release this, can you tell us how to implement it in our own sources, or will we have to use your source, end of?
 
 
permalink
 

 
I can do whatever I like!
Rec0rd's Avatar

Status: Banned


Reply With Quote
 
Join Date: Jul 2008
Location: United Kingdom
Posts: 1,098
11-04-2008, 08:57 AM
 
Quote: Originally Posted by TomSpit View Post
Cecer, when you finally release this, can you tell us how to implement it in our own sources, or will we have to use your source, end of?
Most likely.

Quote: Originally Posted by TimesCoder
OK here is my 2 cents on it.

I would rather run a stable V23/V24 Server than running a V26 Server with the current database management. and trust me this "Total Pooling" is stable... Soon as all the bugs are ironed out it will be a damn good server

I'm not saying we can't do V25/V26 as we could, but we have no intentions of going past V24 at the present moment in time... V25 May be considered but thats the furthest we'd go i think.

By the time V26 is 100% Habbo UK will be on V28 V29...

No disrespects to the V26 Coders, your doing a good job, but i don't see the point in trying to keep up with UK just because a few habboons are feature happy.

I understand what your saying CJ, but whats the point having all these V26 Features in a unstable server. Hence why we are stabilising V24.

Stable V24 > Unstable V26 in my opinion


Any decent Private Server owner would be concerned with the Stability first not new features

"OMG Habbo has V27. CODE V27 SUPPORTZ!!!ONEONEONE"
Oh please, your embarrising yourself.
 
 
permalink
 

 
Holograph Developer

Rank: Member


Reply With Quote
 
Join Date: Aug 2007
Location: Cardiff, Wales
Posts: 1,103
11-04-2008, 09:35 AM
 
Darn it, what source would it be then, as my source is V23 and I want it to stay V23.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-04-2008, 02:26 PM
 
It does support R23 (As far as I know).

But the source can be used for people to base updates on and not just as it is.
Updates will have to be converted if they contain MySQL but they should still work if they are MySQL free.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-04-2008, 02:40 PM
 
Quote: Originally Posted by TomSpit View Post
Cecer, when you finally release this, can you tell us how to implement it in our own sources, or will we have to use your source, end of?

It's a complete recode, The SQL Management is COMPLETELY Different

No more DB.Runread ort DB.RunReadRow

It's more like

dbClient.Findresults(SELECT FROM) etc


@rec0rd, Lol Myles you quoted my post as Timescoders :P
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-05-2008, 11:23 PM
 
I will be releasing a public testing source soon.

I just want to fix a few bugs.
If you are a tester please PM your final bug report list.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-06-2008, 01:02 AM
 
V24 Stable (80% i say)

Ran it for like 5hours on my hotel today with 35-40 users online and not 1 mysql disconnection or crash. But the random disconnection is still there
 
 
permalink
 

 
Erday im hustlin

Rank: Member


Reply With Quote
Blog Entries: 4
 
Join Date: Dec 2007
Location: Sandaygo
Posts: 699
11-06-2008, 01:17 AM
 
Yeah that is the thing that worries me, the random disconnection. I mean it will be better if it didn't have that bug but i think it could be fixed.
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-06-2008, 03:30 PM
 
That bug has been "fixed".

I found it to be something to do with the speaking and I really can't be bothered to find the cause.
I put it in a try catch block for now so it simply ignores the error.

I will be fixing a few more things like :commands and :whosonline and of cause :userinfo.

Oliver can you please send me the sticky fix to save me working on it
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Mar 2008
Location: Habbz Hotel
Posts: 368
11-06-2008, 03:37 PM
 
Quote: Originally Posted by cecer1 View Post
That bug has been "fixed".

I found it to be something to do with the speaking and I really can't be bothered to find the cause.
I put it in a try catch block for now so it simply ignores the error.

I will be fixing a few more things like :commands and :whosonline and of cause :userinfo.

Oliver can you please send me the sticky fix to save me working on it
Wow, You fixed random disconnections?

Wicked
 
 
permalink
 

 
The mofo'ing Woodpeckah

Rank: Alpha Member


Reply With Quote
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 3,428
11-06-2008, 03:39 PM
 
Good going Chris, keep it up.
From what I see you've improved the database part alot. :)

- Nillus
 
 
permalink
 

 
Holograph Developer

Rank: Member


Reply With Quote
 
Join Date: Aug 2007
Location: Cardiff, Wales
Posts: 1,103
11-06-2008, 05:41 PM
 
Quote: Originally Posted by cecer1 View Post
That bug has been "fixed".

I found it to be something to do with the speaking and I really can't be bothered to find the cause.
I put it in a try catch block for now so it simply ignores the error.

I will be fixing a few more things like :commands and :whosonline and of cause :userinfo.

Oliver can you please send me the sticky fix to save me working on it
Can you tell us how to fix it when you find the cause. It is a very annoying bug =(
 
 
permalink
 

 
Total Database Pooling

Rank: Member


Reply With Quote
 
Join Date: Aug 2006
Location: Some place in england
Posts: 286
11-07-2008, 12:25 AM
 
I don't know if it is the same bug as it happened a lot more than the old source before I prevented it.

I am just cleaning up the source then I will put it up somewhere for a public test.


Released - Links at start of thread!

Last edited by cecer1; 11-07-2008 at 02:27 AM.
 
 
permalink
 

 
Expect the Unexpected

Rank: Member


Reply With Quote
 
Join Date: Apr 2008
Location: Australia
Posts: 637
11-07-2008, 03:21 AM
 
Thanks for this, i will test it when i get home, also hate to bring back the 'version' debait but V27 is my opinion appears to be pretty good as it has improved catalogue speed etc anyway good work.
 
 
permalink
 

Reply

Tags
better (i hope xd), database, goodwork, handyandy160_is_1337, holo, holograph, http://tinyurl.com/holo26, pooling, too long, woodpecker

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 09:08 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008