Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async CatTree and dir parser #186

Merged
merged 3 commits into from
Jan 16, 2023
Merged

Async CatTree and dir parser #186

merged 3 commits into from
Jan 16, 2023

Conversation

ate47
Copy link
Contributor

@ate47 ate47 commented Jan 4, 2023

This PR add 2 async versions for the DirParser and the CatTree

The CatTree async version can be selected with the loader.cattree.async=[boolean] option, knowing a cat is most likely faster than the time before the next cat, you can't select more than 2 threads.

The DirParser async version can be selected with the parser.dir.async=[number] option, 1 = sync, 0 = processor count, n = using n threads.

I've also added a commit to use large arrays in Bitmap375Disk to use larger indexes.

EDIT:
For example, when loading 200 different NT files (same size), it take 4 times less time to load them with the dir parser:

async parsing: 295 ms 526 us
sync parsing: 1 sec 178 ms 398 us

@ate47 ate47 force-pushed the dev_async_cattree branch from f8e4b16 to 8335366 Compare January 9, 2023 14:02
@D063520 D063520 merged commit c2abc85 into rdfhdt:dev Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants