English Memory Cleaner/Garbage Collector v1.0 icon

17 comments
11.08.13 01:13:59 pm
like 6 like it!
2 kb, 75 Downloads
MikuAuahDark
User
Offline Off
Memory Cleaner or Garbage Collector by user MikuAuahDark

∗ Description ∗
This LUA would make your server more faster by cleaning memory every 5 minutes and every 5 times(default, can be configured at MemoryCleaner.lua)
This LUA is presents for a newbie scripter
This LUA is useful when you're running big scripts
It just use collectgarbage() LUA function

∗ Features ∗
• > file cs2d Improved AddHook 2 (5) compatible
• > Configurable settings(see below)

∗ How to Install ∗
> Just put MemoryCleaner.lua or MemoryCleaner_desc.lua at sys/lua/autorun

∗ Reserved Global Variables ∗
> MemoryCleaner
> CleanTimes
> TimeToClean
> ShowMsg
> NormHook

∗ Information ∗
> Hooks: 1(cs2d lua hook second)
> Lines: 30

∗ Configuration ∗
On MemoryCleaner.lua or MemoryCleaner_desc.lua you can see a configuration variable. Here is the list of it
• CleanTimes - Every 5 minutes do x times cleaning(default 5)
• TimeToClean - Clean every x seconds(default 300, 5 minutes)
• ShowMsg - Show message when cleaning is performed to stdout/console. true by default
• NormHook - Always use normal hook(cs2d lua cmd addhook) even if file cs2d Improved AddHook 2 (5) is used(true by default, it can make it little faster)

∗ Rules ∗
√ You can use it for your server
√ You can edit it
√ You can upload at another website, say user MikuAuahDark made it
× You can't say this is yours
× You can't upload on another website without put me on credits

∗ Notes ∗
1. Tell me if there is a bugs
2. There is a file named MemoryCleaner_desc.lua. It just do same but file contents are different. it has description how the code works.
3. You can use MemoryCleaner.lua or MemoryCleaner_desc.lua. It just do same
4. Note that this is just simple scripts

∗ Version History ∗
> v1.0
> ADDED Initial Release
image
edited 1×, last 03.11.13 01:00:23 am
ok This file has been reviewed and approved by Seekay (04.12.15 01:09:20 pm)

Comments

17 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
13.08.13 12:23:26 pm
Up
Ashelin
BANNED
Offline Off
@user MrSlave: MANE DIS IS BULLSHAIT!

@user MikuAuahDark: MANE U NO SPEEKIN' ENGLISH? MANE U WOT?
13.08.13 12:16:36 pm
Up
404_Monk
User
Offline Off
bad as shit.
13.08.13 12:04:47 pm
Up
MikuAuahDark
User
Offline Off
user MrSlave has written:
WHA DIS TING MANE TO MUCH TEXTTT
sorry but i can't understand you.
13.08.13 11:14:30 am
Up
MrSlave
BANNED
Offline Off
WHA DIS TING MANE TO MUCH TEXTTT
13.08.13 07:22:13 am
Up
MikuAuahDark
User
Offline Off
user _Yank has written:
Does this really make a diference ?
yes. You can see it decreased with task manager
12.08.13 11:54:14 pm
like I like it!
Up
_Yank
User
Offline Off
Does this really make a diference ?
About how much seconds of diference ? - In a super hero script + admin script v30 for example.
Ãnywas helpful.
12.08.13 08:54:21 pm
Up
VADemon
User
Offline Off
user MikuAuahDark has written:
This LUA would make your server more faster by cleaning memory every 5 minutes and every 5 times

Why do you think that you're more efficient than Lua itself?
Same story as in Java with system.gc() IMHO
12.08.13 09:34:13 am
Up
Avo
User
Offline Off
You know, it's very easy, but at least you wrote proper description. All descriptions would look like yours.

about variables access >
12.08.13 07:32:38 am
Up
MikuAuahDark
User
Offline Off
user Promaster has written:
Nice Script, But need more explanation about how this Script really works. What exactly does it Cleans?
a value that can't accessed by any variable
and also do you want to see some explanation how it works? take a look at MemoryCleaner_desc.lua
12.08.13 02:32:46 am
like I like it!
Up
Promaster
User
Offline Off
Nice Script, But need more explanation about how this Script really works. What exactly does it Cleans?
11.08.13 11:22:30 pm
Up
MikuAuahDark
User
Offline Off
user Hatsune Miku has written:
This Script is Hard :v , I Think you must teach me to make it :v
simple, just put this at your code
Code:
1
collectgarbage("collect")

i already said that is a simple script
11.08.13 10:44:41 pm
like I like it!
Up
iii
User
Offline Off
is good
11.08.13 02:48:19 pm
like I like it!
Up
Hatsune Miku
User
Offline Off
This Script is Hard :v , I Think you must teach me to make it :v
11.08.13 02:46:39 pm
Up
MikuAuahDark
User
Offline Off
user iii has written:
i am suspicious. Does collectgarbage("collect") only delete values which are not needed?

It's delete a value which does not have any variable.
11.08.13 02:24:56 pm
like I like it!
Up
JaKenMarX
COMMUNITY BANNED
Offline Off
Useful.
11.08.13 02:08:53 pm
like I like it!
Up
iii
User
Offline Off
i am suspicious. Does collectgarbage("collect") only delete values which are not needed?
11.08.13 01:53:51 pm
like I like it!
Up
Forever Alone
User
Offline Off
Nice
To the start Previous 1 Next To the start