Skip to content

Commit

Permalink
Remove more code for old snapshot versions (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored Oct 23, 2024
1 parent 7ee5f36 commit b8c1aa1
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/pyodide/internal/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,7 @@ const PRELOADED_SO_FILES: string[] = [];
*/
export function preloadDynamicLibs(Module: Module): void {
let SO_FILES_TO_LOAD = SITE_PACKAGES.soFiles;
if (LOADED_BASELINE_SNAPSHOT && LOADED_SNAPSHOT_VERSION === 1) {
// Ideally this should be just
// [[ '_lzma.so' ], [ '_ssl.so' ]]
// but we put a few more because we messed up the memory snapshot...
SO_FILES_TO_LOAD = [
['_hashlib.so'],
['_lzma.so'],
['_sqlite3.so'],
['_ssl.so'],
];
}
if (
IS_CREATING_BASELINE_SNAPSHOT ||
(LOADED_BASELINE_SNAPSHOT && LOADED_SNAPSHOT_VERSION === 2)
) {
if (IS_CREATING_BASELINE_SNAPSHOT || LOADED_BASELINE_SNAPSHOT) {
SO_FILES_TO_LOAD = [['_lzma.so'], ['_ssl.so']];
}
try {
Expand Down

0 comments on commit b8c1aa1

Please sign in to comment.