EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   General::General Discussion (https://www.eqemulator.org/forums/forumdisplay.php?f=586)
-   -   Custom Character Data (https://www.eqemulator.org/forums/showthread.php?t=36276)

Drajor 01-17-2013 10:22 PM

Quote:

Originally Posted by lerxst2112 (Post 216525)
Yes, changing a qglobal writes to the database, but reads are cached, and it's likely that reads are more common than writes.

Reads are not cached if I understand the code correctly. They are read out of the DB every single time. See Parser::Event.

Also see any references to QGlobalCache::GetBucket - That is never used for anything other than 'combining'.

lerxst2112 01-17-2013 10:52 PM

You're right, Parser::Event accesses the database. Parser::Event is also never called.

Drajor 01-17-2013 10:57 PM

Quote:

Originally Posted by lerxst2112 (Post 216530)
You're right, Parser::Event accesses the database. Parser::Event is also never called.

Yep when I realised I had a good laugh :p

Drajor 01-17-2013 10:59 PM

Honestly after reading through all this code - It has become to clear to me that I will probably never use qglobals (until now I had nothing against it). I would feel much more confident in using what I have made. It may not be as fast (I can not even determine that for sure) but it is simple, has few moving parts. If something breaks I do not need to dig through thousands of lines of code.

Each to there own.

KLS 01-17-2013 11:47 PM

If you find a way to break qglobals I'll give you a gold star.

ghanja 02-28-2015 01:50 AM

Necro'ing post, yeah, I know.

No need for the gold star, I'd rather have a fix please.

https://github.com/EQEmu/Server/issues/339

I do wish I could extend a hand, however, in my limited C++ knowledge (pales in comparison), I cannot find the source of the issue. Sorry.


All times are GMT -4. The time now is 05:42 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.