-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate_nodeid now generates random id's
Since the sqlite address-space is lazy loading, the old approach with incremental identifiers is very slow, as it requires loading the complete address space in memory before the highest identifier is found. Generating a random uid and checking if it already exists in the address space is much faster, especially for hunderds of nodes.
- Loading branch information
Showing
1 changed file
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters