![]() ![]() I know it's not the clearing, either, because I added that in AFTER I already knew there was a speed issue. I do it once every time I boot up and I can't see any slowdown or hang at all! It's just when I clear the DB and enter in the new elements that I see a problem. That said: Loading the DB entries seems very fast. I don't know if this is an error with my code (maybe, because luasql is very poorly documented) or if I can just expect DB transactions to be insanely slow, and count them out of anything critical. Mudlet hangs for 10-15 seconds while the commands are parsed in. Here's the problem: When that chunk of text comes in and lua starts processing it, the DB functions are incredibly slow. I clear the DB on every time to get rid of old enemies, as well. I'm bringing in a huge block of comma seperated names and using a gsub to parse through them and enter them into the database. my enemies list and guild member list I can retrieve through in game commands (though, MKO doesn't yet offer a CITY MEMBERS command.). This software wouldnt've been possible without these open source packages:Ĭredit to Markdownify for the README inspiration.I just finished writing a little piece of code that I believe is quite divine, but am plagued by a speed issue.Įssentially, I'm now use sqlite to keep track of my enemies, allies and known merchants. See the project's roadmap to get an idea of where it's headed, as well as contribute! CreditsĪuthor: Mudlet Makers. Mudlet's vision is to build the best text gaming experience possible to nurture & grow this niche scene. If you'd like to compile Mudlet yourself instead of downloading, you can find instructions to do so here.
0 Comments
Leave a Reply. |