Hello, I have always asked myself this question : regular use(task for example) of a config can it lagg the server? Sorry for my bad english. Thank's you in advance
It's like asking if a box in a truck will slow it down without any information of the box's content, size, weight it's impossible to correctly answer your question
Sorry but it's not easy to express myself in english, I'm talking about config, can it lagg the server if I use Config::get() or Config::set() several times in a task?
How many times in the task? How frequently is the task being run? What data are you saving? A task being run once every 30 minutes that saves an integer to an array would likely have little affect, while a task being run several times a minute, saving several large arrays at once, could have a more noticeable effect on performance.
It's an array with 4 positions minimum and it's not in a task but at PlayerMoventEvent.I say task for example.
well, if you're not spamming them so hard that the function call overhead and the slow array access in php come to light, you should be fine. these functions do not do disk operations, and are therefore relatively fast.
understood, but you should try to explain as much and as best as you can minimizing the need for me to ask questions, and minimizing your need to respond to my questions THUS both everyone here can work as efficiently as possible depends, but the idea that you need to i recommend you avoid if possible, or if you feel comfortable, share the task file/the whole thing and we will see what we can do to optimize it