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

Add an IRI cache to NodeDecoder #201

Merged
merged 4 commits into from
Oct 26, 2024
Merged

Add an IRI cache to NodeDecoder #201

merged 4 commits into from
Oct 26, 2024

Conversation

Ostrzyciel
Copy link
Member

Also, rewrite it in Java.

As usual, if it works, I will finish the docstrings etc.

This is a very simple cache that assumes that a name entry is most likely used only with one prefix entry. Therefore, the last IRI constructed from prefix+name is cached here. There is a mechanism for dependent cache invalidation very similar to what we have in NodeEncoder (with serial numbers).

Let's see.

Also, rewrite it in Java.

As usual, if it works, I will finish the docstrings etc.

This is a very simple cache that assumes that a name entry is most likely used only with one prefix entry. Therefore, the last IRI constructed from prefix+name is cached here. There is a mechanism for dependent cache invalidation very similar to what we have in NodeEncoder (with serial numbers).

Let's see.
@Ostrzyciel Ostrzyciel merged commit 221ffc2 into main Oct 26, 2024
4 checks passed
@Ostrzyciel Ostrzyciel deleted the deserializer-iri-cache branch October 26, 2024 17:12
Ostrzyciel added a commit that referenced this pull request Oct 26, 2024
Continuation of #201

Fixed the code to avoid doing casting on runtime – this was compiling into additional JVM instructions. Now, we don't have any casts in the code after compilation.

Also: add javadocs.
Ostrzyciel added a commit that referenced this pull request Oct 26, 2024
* Polish the new NameDecoder implementation

Continuation of #201

Fixed the code to avoid doing casting on runtime – this was compiling into additional JVM instructions. Now, we don't have any casts in the code after compilation.

Also: add javadocs.

* DRY up the code

* Oops
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.

1 participant