Thanks to a blog comment by @arj, I finally ran at least one of the new
resolv) and, sure enough there were a few memory leaks which are now fixed. However, I first ran
valgind with a simple test
R script that just did
Back in April, we showed you how to use a C resolver library to make many different kinds of DNS lookups. More oft than not, such complete functionality is not necessary, but R still only provides nsl to get an IPv4 address of a given hostname, which is woefully inadequate ...
looked at using the
Vectorize() function to, well, vectorize, our
While this is a completely acceptable practice, we can perform the
vectorization 100% in
Rcpp/C++. We’ve included both the original
Rcpp IPv4 functions and the new
Rcpp-vectorized functions together
to show ...
Our previous post showed how to speed up the conversion of IPv4 addresses to/from integer format by taking advantage of a simple
Rcpp wrapper to “boosted” native functions. However, to convert more than one IP address, you need to stick those functions into one of the R
*apply functions ...
In our book we provide examples of how to convert IPv4 addresses to integer format (and back). We held ourselves to using only basic R functionality since the book had to be at an introductory level. On a fairly modern box, the
ip2long function takes (roughly)
0.1s to convert ...
Technically this is Part 2 of Firewall-busting ASN-lookups. However, I said (in Part 1) that Part 2 would be about making a vectorized version and this is absolutely not about that. Rather than fib, I merely misdirect. Moving on…
As you can see in Part 1, we have to ...