icyphy / ptII

Ptolemy II is an open-source software framework supporting experimentation with actor-oriented design.
https://ptolemy.eecs.berkeley.edu/ptolemyII
Other
98 stars 43 forks source link

Save models in a binary format #150

Open cxbrooks opened 15 years ago

cxbrooks commented 15 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#219 From: @cxbrooks Reported version: 7.1.devel CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 15 years ago

It would be nice if we could save models in a binary format that would be faster to read etc.

The model could be saved after preinitialize():

In some ways, this would be like byte code for the model. The model could be opened and run and if there were no changes (or only "safe" changes) then various steps would not need to occur.

cxbrooks commented 15 years ago

Being able to save models in binary format would greatly improve startup performance.

One idea would be to try to use serialization, though getting all the caches set up properly could be complex.