Miniature-Distributed-System / Worker-Unit

Worker/Compute Unit which communicates with the Server Unit in receiving/processing/sending back results to server.
GNU General Public License v3.0
1 stars 0 forks source link

Create Configs local variable #5

Open trax85 opened 6 months ago

trax85 commented 6 months ago

instead of asking global objects manager every time which causes performance dips create a local variable for configs.

https://github.com/Miniature-Distributed-System/Worker-Unit/blob/ffde10e90887c6dde6dfdfdd1e125171a1e0c214/sender_proc/sender.cpp#L172

https://github.com/Miniature-Distributed-System/Worker-Unit/blob/ffde10e90887c6dde6dfdfdd1e125171a1e0c214/sender_proc/sender.cpp#L178

https://github.com/Miniature-Distributed-System/Worker-Unit/blob/ffde10e90887c6dde6dfdfdd1e125171a1e0c214/sender_proc/sender.cpp#L179