EvEmu-Project / evemu_Crucible

Emulator for EvE Online's Crucible expansion
https://evemu.dev
174 stars 68 forks source link

WIP: Migration to ORM with ODB #179

Open SantjagoCorkez opened 2 years ago

SantjagoCorkez commented 2 years ago

It's a sample implementation of the problematic code I've pointed to in #178 The ODB manual is here: https://www.codesynthesis.com/products/odb/doc/manual.xhtml

My measurements for console command test (which calls MarketMgr::SetBasePrice()):

16:56:35 M PROFILE: Old GetMaterialPrices() finished in 0.110 seconds
16:56:35 M PROFILE: New GetMaterialPrices() finished in 0.011 seconds

It's still a work-in-progress since there's still a lot to implement (database schema initialization, migrations and so on).

I didn't check if the cmake install properly installs the eve-db.so (which must be a shared library or the code will segfault) but the build and run from the project directory works.

jdhirst commented 2 years ago

@SantjagoCorkez Great work so far! I really like the direction this is going in 😄