Peter J. Hanson
Peter J. Hanson
Same here, just installed 1.5.1 on Catalina and see the same behavior.
Hi, I'm trying out the library in a lambda environment and I see typical detection taking around 600 ms, with some going upwards of 3-4 seconds (I'm using time/timeEnd around...
here's the function I'm running: decorateWithUserAgentData(userAgent) { const returnData = { os: null, client: null, device: null, bot: null }; if (typeof userAgent === "string") { const detector = new...
I did try a version of the cache approach above like so: decorateWithUserAgentData(userAgent) { const returnData = { os: null, client: null, device: null, bot: null }; if (typeof userAgent...
Ah, I see, so the constructor has a high cost to initially run. Yeah, if you did the initialization in the global scope of a lambda, that would be available...