Serialize and save the compiled function.
(compiled, save_name)
| 138 | |
| 139 | |
| 140 | def save_compiled(compiled, save_name): |
| 141 | """Serialize and save the compiled function.""" |
| 142 | serialized, _, _ = serialize(compiled) |
| 143 | with open(save_name, "wb") as f: |
| 144 | pickle.dump(serialized, f) |
| 145 | |
| 146 | |
| 147 | def is_oom(argv: Sequence[str]) -> bool: |