Importing a large number of keys (50,000) causing freezing in wallet.import_keys()
When attempting to import a substantial number of keys (50,000) using the wallet.import_keys()
function, the wallet fails to handle such a large quantity efficiently. As a result, the process becomes unresponsive and freezes. The last successful import was observed for 19,000 keys before encountering this issue.
Execution time:
- 1_000 accounts -> 2.845214605331421 seconds
- 2_000 accounts -> 5.395129919052124 seconds
- 5_000 accounts -> 13.327239990234375 seconds
- 10_000 accounts -> 27.504606246948242 seconds
- 15_000 accounts -> 41.49444365501404 seconds
- 19_000 accounts -> 51.46978807449341 seconds
- 20_000 accounts -> infinity