Implemented the lookup for longer prefixes than /8s by using RIPE's Ip Resource libraries.
This way intersecting blocks can coexist in the same bootstrap file, where the longest prefix is selected. This enables to build a custom bootstrap file containing more information than IANA's (for example NIRs information).
Performance
We thought the use RIPE's libs may downgrade performance, as Strings are parsed in every query, but actually it almost didn't.
The brace matching style is significantly different here that it makes looking at diffs problematic. I would ask that in the future you try to match the style of the existing code.
IPv4 queries for longer than /8 prefixes
Implemented the lookup for longer prefixes than /8s by using RIPE's Ip Resource libraries. This way intersecting blocks can coexist in the same bootstrap file, where the longest prefix is selected. This enables to build a custom bootstrap file containing more information than IANA's (for example NIRs information).
Performance We thought the use RIPE's libs may downgrade performance, as Strings are parsed in every query, but actually it almost didn't.