11.07.2015 Views

CL-STORE: CL Serialization Package - Common Lisp.net

CL-STORE: CL Serialization Package - Common Lisp.net

CL-STORE: CL Serialization Package - Common Lisp.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: API 33 API3.1 Variables[Variable]Determines wether or not to override existing classes when restoring a <strong>CL</strong>OS Class.If *nuke-existing-classes* is not NIL the current denition will be overridden.*nuke-existing-classes* Default NIL[Variable]If *store-class-superclasses* is not NIL when storing a <strong>CL</strong>OS Class all superclasseswill be stored.*store-class-superclasses* Default NIL[Variable]If *store-class-slots* is NIL slots which are class allocated will not be serializedwhen storing objects.*store-class-slots* Default T[Variable]If *nuke-existing-packages* is non-nil then packages which already exist will bedeleted when restoring packages.*nuke-existing-packages* Default NIL[Variable]The variable determines how packages on a package use list will be serialized. If nonnilthe the package will be fully serialized, otherwise only the name will be stored.*store-used-packages* Default NIL[Variable]The default size of the hash-table created to keep track of objects which have alreadybeen stored. By binding the variable to a suitable value you can avoid the consinginvolved by rehashing hash-tables.*store-hash-size* Default 50[Variable]The default size of the hash-table created to keep track of objects which have alreadybeen restored. By binding the variable to a suitable value you can avoid the consinginvolved by rehashing hash-tables.*restore-hash-size* Default 50[Variable]Binding this variable to nil when storing or restoring an object inhibits all checksfor circularities which gives a severe boost to performance. The downside of this isthat no restored objects will be eq and attempting to store circular objects will hang.The speed improvements are denitely worth it if you know that there will be nocircularities or shared references in your data (eg spam-lter hash-tables).*check-for-circs* Default t*default-backend*The backend that will be used by default.[Variable]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!