Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Publish on crates.io? #6

Open
baskerville opened this issue Apr 19, 2019 · 13 comments
Open

Publish on crates.io? #6

baskerville opened this issue Apr 19, 2019 · 13 comments

Comments

@baskerville
Copy link
Contributor

This crate doesn't seem to be published on crates.io?

@humenda
Copy link
Member

humenda commented Apr 19, 2019 via email

@baskerville
Copy link
Contributor Author

baskerville commented Apr 20, 2019 via email

@humenda
Copy link
Member

humenda commented Apr 20, 2019 via email

@humenda
Copy link
Member

humenda commented Oct 30, 2019

@baskerville You've worked on the crate quite a bit. It looks fine to me. I'm not sure whether the user should have the choice to use memory mapped files from the Dictionary struct or whether this should be transparent. But otherwise, we could make a release.

@baskerville
Copy link
Contributor Author

baskerville commented Oct 30, 2019

Once #15 and #16 are merged, I think it would be fine to publish from the master branch. I haven't looked thoroughly into the mmap branch yet.

@humenda
Copy link
Member

humenda commented Oct 31, 2019 via email

@baskerville
Copy link
Contributor Author

I don't think it is worth trying to encapsulate both approaches.

What are the disadvantages of the mmap approach?

@humenda
Copy link
Member

humenda commented Oct 31, 2019 via email

@baskerville
Copy link
Contributor Author

It might be worth writing a benchmark (maybe a randomized lookup of all the terms in the example dictionary?). I'm worried about the performance improvements of mmap being unperceivable.

Won't the memory usage increase when mmap is used?

@humenda
Copy link
Member

humenda commented Nov 1, 2019 via email

@mscofield0
Copy link

If the file is deleted or changed (e.g. an upgrade of the database), the corresponding signals need to be catched. I couldn't bother to implement this. But it shouldn't be too hard.

I don't think this is possible via signals. The only option that I see is using advisory file locks but that requires both parties to try and lock the file before doing anything to it. I'm currently doing it with advisory file locks on my end.

@mscofield0
Copy link

Could you please publish it to crates.io if you accept #18 and #19? @humenda

@humenda
Copy link
Member

humenda commented Apr 14, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants