Decreasing amount of lag
Hi!
I got a problem with my plugin, its extremely memory consuming and creates lag after some time. I wonder if there are any 'tricks' to decrease the amount of lag. I've optimized my plugin as much as I can without any results. I've also used "#pragma dynamic 32768" but that doesn't help. I wonder if there a some kind of code snippet in the plugin which makes it lag. Anything that could help would be appreciated. Here's the link to the source code: LINK |
Re: Decreasing amount of lag
What about good coding practices? Tell us what you're doing, or at least post us part of the code so we can help you.
|
Re: Decreasing amount of lag
Well, it's the entire plugin really.
It's memory consuming and I can't find a way to decrease the amount of lag. Though I'm pretty sure the lag starts when there are a lot of people in the database. Since they also have to be sorted by there points. Is there any better way of saving or optimization? |
Re: Decreasing amount of lag
Quote:
|
Re: Decreasing amount of lag
I'm using fVault which is using the new file system.
I previously used the old file system but that to gave me lag. |
Re: Decreasing amount of lag
Try using SQLite or nVault.
|
Re: Decreasing amount of lag
CPU is overoccupied?
|
Re: Decreasing amount of lag
Quote:
Nor return entrie by number. Example returning the 1st entry with fvault: PHP Code:
There's not a function for that in nVault. |
Re: Decreasing amount of lag
Have you tried using MySQL or SQLite yet?
|
Re: Decreasing amount of lag
Quote:
Also, I don't have so much experience in it but that might be my only option. Just a quick question, is it possible to create a database in mysql sorted by a value? As I do in my current script, sort the database by the players points. |
| All times are GMT -4. The time now is 03:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.