Most of the speed issues with parsing come from loading a dhcpd.conf or dhcpd.leases file. Once it's parsed it's easy to keep it in memory (at least for dhcpd.conf where changes don't happen every second)
I tried using Storable, but the objects are too complicated for it, or something else goes wrong. It's been a long time since I tried this and I forgot about it. I pretty much decided it was a user issue and not a library issue, but I still want to be compatible with libraries that help users do the right thing.
Something like http://kiokudb.github.io/ would allow objects to be stored in DBI, Couchdb or Berkeley.
Most of the speed issues with parsing come from loading a dhcpd.conf or dhcpd.leases file. Once it's parsed it's easy to keep it in memory (at least for dhcpd.conf where changes don't happen every second)
I tried using Storable, but the objects are too complicated for it, or something else goes wrong. It's been a long time since I tried this and I forgot about it. I pretty much decided it was a user issue and not a library issue, but I still want to be compatible with libraries that help users do the right thing.
Something like http://kiokudb.github.io/ would allow objects to be stored in DBI, Couchdb or Berkeley.