CSGOItemParserForWeaponsPlugin icon indicating copy to clipboard operation
CSGOItemParserForWeaponsPlugin copied to clipboard

High CPU Load. Nothing happens

Open fipso opened this issue 3 years ago • 3 comments

Hello, i tried running the jar binary from the repo and it keeps stuck after starting without any console output. tested both on windows with client and linux with server as csgo folder.

EDIT: java version image

fipso avatar Sep 22 '21 14:09 fipso

i'm on windows, but for me it work, just take very long time -> about 10 minutes for just 1.txt (CPU is Ryzen 7 3750H 2.3Ghz - laptop CPU).

shikekaka1 avatar Jan 21 '22 07:01 shikekaka1

Good to know it works. Pretty wierd the tool is just paraing some plain text files. That shouldn't take a single second.

fipso avatar Jan 27 '22 13:01 fipso

This wasn't planned or engineered to work efficiently in any way. I just needed something that parsed a huge text file using regular expressions. A lot of optimizations could be applied that made it work in a few seconds, but since this is only needed once or twice a year, I didn't see any reason to spend any extra time on it. This might be one of the worst things I released publicly (I have worse things in private just like any tinkerer), but it still gets the job done.

Pull requests are always welcomed

kgns avatar Jan 27 '22 17:01 kgns